Policy Management

Introduction

Your application can be changed through the control panel. You can receive a list of all politicians and receive the full text of confirmations.

Methods Initialization

To invoke methods, use the Users object. All methods are located within this URL:

https://cp.ocugine.pro/api/users/

Available policy methods

Method Usage For
Users.get_policy_list Get Policy List API/SDK
Users.get_policy_info Get Policy Info API/SDK

Users.get_policy_list

This method is designed to get a list of policies that you have prepared in advance in the Ocugine control panel.

Method URL

https://cp.ocugine.pro/api/users/get_policy_list/

Request Data

Name Type Usage
app_id double Ocugine Project ID
app_key string Ocugine Client Key
lang (Not required) string Requested language. By defaults - System language.

Returned Data

Name Type Usage
complete bool Operation Status
message string Error Message. If complete = false, returns null.
list array Array with Policy List

Responce Example

{
  "complete": true,
  "message": "",
  "data": {
    "list": [
      {
        "policy_name": "Test Policy",
        "uid": "1",
        "time": "0"
      },
      {
        "policy_name": "Test Policy 2",
        "uid": "2",
        "time": "0"
      }
    ]
  }
}

Users.get_policy_info

This method is designed to get complete information about the policy you previously created in the Ocugine control panel. The request is made by policy ID.

Method URL

https://cp.ocugine.pro/api/users/get_policy_info/

Request data

Name Type Usage
app_id double Ocugine Project ID
app_key string Ocugine Client Key
pid double Policy ID for current Application
lang (Not required) string Requested language. By defaults - System language.

Returned data

Name Type Usage
complete bool Operation Status
message string Error Message. If complete = false, returns null.
info object Policy data object

Responce Example

{
  "complete": true,
  "message": "",
  "data": {
    "info": {
      "uid": "1",
      "policy_name": "Test Policy",
      "policy_text": "Daisudbyuiasdbuasvdasuivd",
      "project_id": "1",
      "time": "0"
    }
  }
}