Version 7.7.3

Back | 

WsLogin

URL

medialize.stream.co.jp/services/index.php?&mode=json
Use "request" param as post variable for submitting json/xml request payload for all POST requests.

Parameters

Request

Get an user token

Request format

{
  "request": {
    "authentication": {
      "app_token": "76f3139c-9c22-11e4-9c3f-1231392ca940"
    },
    "header": {
      "header_version": 1,
      "api_version": "5",
      "no_cache": true
    },
    "ws_login": {
      "username": "yourusername",
      "password": "yourpassword",
      "static_login": true,
      "select_first_client": true
    }
  }
}

Test Example

{ "request": { "authentication": { "app_token": "76f3139c-9c22-11e4-9c3f-1231392ca940" }, "header": { "header_version": 1, "api_version": "5", "no_cache": true }, "ws_login": { "username": "yourusername", "password": "yourpassword", "static_login": true, "select_first_client": true } } }

Response

Response format

{
  "response": {
    "success": [
      {
        "code": 401,
        "message": "Static Login Used",
        "details": ""
      },
      {
        "code": 103,
        "message": "Client Selected",
        "details": ""
      },
      {
        "code": 101,
        "message": "Logged In",
        "details": "Token Generated for username"
      }
    ],
    "WsLoginResponse": {
      "client_token": "1024",
      "user_token": "d0adb2d5396eaa75815e0d61fb23cb80",
      "confirm_new": "true"
    }
  }
}