A
A
Abraziv2018-07-22 18:47:28
Classmates
Abraziv, 2018-07-22 18:47:28

How to use OKSDK.REST.call()?

Hello, I'm learning API OK, tell me how to get a list of user groups? I do this:
OKSDK.REST.call("group.getUserGroupsV2", {uid:"121345454"}, function(status, data, error) {});
but returns an error:
{"error_code":100,"error_msg":"PARAM : Only one of session_key or uid must be specified","error_data":null}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vjacheslav Kanivetc, 2018-08-07
@Abraziv

There is also an anchor - that is, a mark of the current page and count - how much to request.
Implementing a paging request based on this is easy.

A
Abraziv, 2018-07-22
@Abraziv

Without parameters, group.getUserGroupsV2 returns only 10 groups, if you specify it hard through the count parameter, it will return more, but display all?

I
Ivan, 2018-07-23
@trei

The answer to the question lies here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question