Method signature

Method is used to calculate a request signature for OK REST API methods calls

OKSDK.REST.calcSignature(requestParams, requestSecret)

Where:

  • requestParams - parameters list;
  • requestSecret - request “secret”:
    • app secret key - for no session requests;
    • access_token - for external applications;
    • session_secret_key - for mobile applications distributed on our mobile platforms.

Example usage

OKSDK.REST.calcSignature(
    {"method": "users.getCurrentUser"},
    OKSDK.Util.getRequestParameters["session_secret_key"]
);