Executing API Requests
To execute an API request, you must send a POST or GET request to:
https://mixnet.am/api?method=METHOD_NAME&keys=PARAMETERS&access_token=ACCESS_TOKEN
  • METHOD_NAME – API method name
  • PARAMETERS – parameters of the corresponding API method
  • ACCESS_TOKEN – Access key obtained as a result of successful authorization
  • Method: auth
    Authorization, receives a key to access user data
  • app_id – application identifier
  • app_secret – application secret key
  • email – email address of the user
  • password – user password
  • Result
    {"uid":USER_ID,"access_token":ACCESS_TOKEN}
  • USER_ID – user identifier
  • ACCESS_TOKEN – access key
  • Method: check_token
    Check access key actuality
  • app_id – application identifier
  • access_token – access key
  • Result
    {"uid":USER_ID}
  • USER_ID – user identifier. If user identifier is 0 then access key is not actual
  • Method: user.get
    Gets information about the user
  • user_id – user identifier
  • access_token – access key
  • Result
    {"first_name":"Sargis","last_name":"Ananyan","photo":"/img/camera_400.gif","online":1}
  • first_name – user frist name
  • last_name – user last name
  • photo – user photo url
  • online – if 1 then user is online