F
F
Finesse2017-03-14 13:15:33
Classmates
Finesse, 2017-03-14 13:15:33

The url.getInfo method fails with error 10, but the group.getInfo method succeeds. Bug or feature?

My scenario: a server application using the URL of a group in Odnoklassniki should get the number of group members.
The application first queries url.getInfoto get the group ID, and then queries group.getInfoto get the number of subscribers. For authorization, both requests use application_key, and application application_secret_keyeternal The problem is that a method request succeeds, but a method request fails, despite the method also requiring permission :access_token
group.getInfourl.getInfogroup.getInfoVALUABLE_ACCESS

{"error_code":10,"error_msg":"PERMISSION_DENIED : User must grant an access to permission 'VALUABLE_ACCESS'","error_data":"valuable_access"}

Literally a month ago, both queries were running successfully. Is this a bug or an undocumented feature of the API? How can I execute my script in the server application?
Request examples:
https://api.ok.ru/fb.do
    ?application_key=APP_KEY
    &format=json
    &method=url.getInfo
    &url=https%3A%2F%2Fok.ru%2Fok
    &sig=SIG
    &access_token=ACCESS_TOKEN

https://api.ok.ru/fb.do
    ?application_key=APP_KEY
    &fields=members_count
    &format=json
    &method=group.getInfo
    &uids=50582132228315
    &sig=SIG
    &access_token=ACCESS_TOKEN

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Finesse, 2017-03-15
@Finesse

The Odnoklassniki API began to check application rights when making requests. How to get them:
Apparently, the fact that the method group.getInfodoes not require rights is a bug.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question