Answer the question
In order to leave comments, you need to log in
Invalid signature (sig parameter) on API request. What is done wrong?
I'm trying to poll the api server, in any case I get an error that the md5 signature is incorrectly specified.
Compared it even with the API request calculator . The essence of the screenshot below:
The secret and public keys of the application are 100% correct.
What could be the problem? I tried all possible combinations of data feed, the result is the same.
Answer the question
In order to leave comments, you need to log in
As can be seen from https://apiok.ru/wiki/display/api/users.getCurrent... - this is a session request and the signature in it goes to the user (or OAUTH) session.
Therefore, instead of the application key, you must use the public and secret keys of the user's session.
If this application is on the portal, then you get these parameters when you start the application. If you are making an external site, then you need to perform OAUTH authorization and get these keys from there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question