L
L
lowolf2015-09-02 14:13:40
Classmates
lowolf, 2015-09-02 14:13:40

Why does he swear at the signature when sending Russian words in an invitation?

In general, the problem is as follows, I send an invitation

http://api.odnoklassniki.ru/fb.do?application_key=xxx&devices=ANDROID%2cWEB%2cIOS&format=json&method=friends.appInvite&text=%bb%d0%b0%d1%88%d0%b0%d0%b5%d1%82+%d1%21&uids=xxx&access_token=xxxx&sig=xxxx

and get an answer
{"error_code":104,"error_msg":"PARAM_SIGNATURE : Invalid signature 167a4b640c40dc2901876ce56a570ef6, calculated by string application_key=xxxdevices=ANDROID,WEB,IOSformat=jsonmethod=friends.appInvitetext=<русский текст>!uids=xxx********SECRET KEY*******","error_data":null}

by mistake it can be seen that supposedly something is wrong with the signature (*sig*)
But everything is correct, and if I send not the Russian text in the invitation, but English, then everything will be fine.
Question: What kind of nonsense and how to continue to live?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vjacheslav Kanivetc, 2015-09-02
@Vjaka

Text must be in urlencode utf-8

V
Valery Ozhiganov, 2015-09-03
@vozhiganov

You can reproduce the request on a calculator .
He knows how to count the signature, it will be possible to notice where the difference is in the count.

L
lowolf, 2015-09-19
@lowolf

Now it constantly swears at {"error_code":1301,"error_msg":"APP_DEVICE_NOT_ALLOWED","error_data":null} What kind of problem I can't understand?!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question