Answer the question
In order to leave comments, you need to log in
What is the error in composing signature for the method mediatopic.post?
Faced with the problem of the signature before sending the photo, the text before that is sent from the server without problems.
{"media": [{"list": [{"id": "moWN4ruoKwRHkR5cAcxemsyNteEiyaChwXZKgwgphHKKU8qcEgmqbWHrlUzx1qBMX18Wd8HaLx47h9VE1qV0yQhfVyMwXWQgsmx+IdyedNuP+cEs5eS87OUyG17GPT8MvJCulrIPLVcu6E7+49MrBw=="}], "type": "photo"}]}
Answer the question
In order to leave comments, you need to log in
Probably an encoding problem.
Options:
do not encodeUtf8 when calculating the signature
do not do encodeUriFragment when generating the request-parameters itself after calculating the signature
, the md5 function does not work correctly (yes, not all implementations work adequately with Russian text)
Compare the code how you prepare the request for sending with what it does, for example js sdk - https://github.com/odnoklassniki/ok-js-sdk/blob/ma...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question