F
F
Finesse2016-04-14 04:46:52
Classmates
Finesse, 2016-04-14 04:46:52

How to get the number of members of the Odnoklassniki group?

I registered the application, got an ID, a public and a secret key. I'm trying to get the number of participants using the group.getInfo method , adding the application's public key to the request and signing the request with a secret one. The request is something like this:

https://api.ok.ru/fb.do?application_key={APP_KEY}&method=group.getInfo&uids=52278482501814&fields=members_count&format=json&sig=7741b0d823d6ca746eddaf90d57f282f

As a result, I get the error "access_token is required":
{"error_code":100,"error_msg":"PARAM : Missed required parameter: access_token","error_data":null}

The documentation says that this method does not require a session. And also the documentation says that in requests outside the session , the session_key or access_token parameter is not passed , but this parameter is still requested. What am I doing wrong? How to make this request correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Finesse, 2020-05-17
@Finesse

The documentation now says that the group.getInfo method requires a session for external applications (I don't know what that means). To get the number of group members, I use the request from the question, add a parameter to it access_token(does not require user authorization, it can be obtained in the application settings ) and take it into account when signing the request according to the instructions .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question