Api Document

Session

Login Get Session

Request URL:

Method: POST

Parameters:

  • client_id: required
  • secret_key: required

Response Body Success

{
    "status": true,
    "data": {
        "session_id": "Session ID (64 characters)",
        "expires_at": "Session expires time (Y-m-d H:i:s)",
        "premium": "Premium plan (true|false)"
    }
}

Response Body Error

{
    "status": false,
    "data": {
        "code": "Error code",
        "message": "Error message"
    }
}

Check Session Exists

Request URL:

Method: POST

Parameters:

  • client_id: required
  • secret_key: required
  • session_id: required

Response Body Success

{
    "status": true,
    "data": {
        "exists": "true|false",
        "expires_at": "Session expires time (Y-m-d H:i:s)"
    }
}

Response Body Error

{
    "status": false,
    "data": {
        "code": "Error code",
        "message": "Error message"
    }
}