-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Signature #7
Comments
I have the "Invalid Signature" problem too. I've tried with a different code base and got the same response. I can make the Bricklink API work with Postman, but not with PHP. Argh! |
I got the same problem, but I got it to work eventually. It required some changes in the parameters of the example code given. I'm using this to get a list of inventory:
where $item_type is "part" for example. |
Thanks for the tip and the code snippet. I still get Invalid Signature (using your code), which leads me to think that maybe it's something that my hosting provider is doing to block or deform the request :/ |
same problem here. here is a helpful article about verifying signatures in oauth. i checked everything. key, token and timestamp are correct. still getting invalid signature. any solutions? |
I did fix it eventually... and I do mean eventually. It's been about a year now so I can't remember exactly what had me stuck, but I think it was an inconsistency with the algorithm where there was a single "&" character that should NOT be encoded, while every other one IS encoded. Here is a snippet of the PHP code that worked for me:
|
thanks dave. afaik this is a completely different code and does not use the current class. but i also do not see a significant difference in code. the class also uses "rawurlencode". but i will dig into code further more to look for that "&". |
Finally found the problem. Spelling mistake in readme which is already reported in this issue damn it! unbelievable i did not notice so long. |
@daveisnt {"meta":{"description":"SIGNATURE_INVALID: Invalid Signature","message":"BAD_OAUTH_REQUEST","code":401}} I have very similar code to your example except the $authHeader section, as I am trying to access the Bricklink API via the URL passing the vars in the URL (GET) I'm pretty sure the signature I am generating is correct. I have been banging my head against a brick wall now for days with this. Would you or anyone else be able to help out? Heres the code I have, key/values have been changed.
|
why you build your own signature? the script does it for you:
thats all i have and need. |
Hi
anyone using this code ? it gives Invalid Signature any advice what could I do wrong ?
The text was updated successfully, but these errors were encountered: