Login

Login with user name and password to get token, default choose first orgnization.

Request Format

METHOD {URI-scheme}://{apigw-address}/solar-api/{version}/loginService/login

Request Parameters

Name Location Required Datatype Description
username Body True String user name
password Body True String password

Response Parameters

Name Datatype Description
body String token

Example

Request Example

POST
https://{apigw-address}/solar-api/v1.0/loginService/login

{
    "username": "your username",
    "password": "your password"
}

Response Example

{
    "status": 0,
    "msg": "success",
    "body": "SID_W_1522723470871_7a378000-bc0f-4f16-b924-5086dffeed45"
}