Get authorized orgnizations¶
Get all of authorized orgnizations with user name and password, Solar API can support end user with multiple orgnizations, please use select orgnization API to select one of orgnization before call other API.
Request Format¶
METHOD {URI-scheme}://{apigw-address}/solar-api/{version}/loginService/getOrganizationList
Request Parameters¶
Name | Location | Required | Datatype | Description |
---|---|---|---|---|
username | Body | True | String | User name |
password | Body | True | String | Password |
Response Parameters¶
Name | Datatype | Description |
---|---|---|
data | Map | |
organizations | List | organization list |
accessToken | String | token, used to access other API |
id | String | orgnization id |
name | String | orgnization name |
Error Codes¶
Example¶
Request Example¶
POST
https://{apigw-address}/solar-api/v1.0/loginService/getOrganizationList
{
"username": "your username",
"password": "your password"
}
Response Example¶
{
"data": {
"organizations": [
{
"id": "o1552442123456",
"name": "OU name1"
},
{
"id": "o1552342123456",
"name": "OU name2"
}
],
"accessToken": "APP_PORTAL_S_DP57AkTXYaq3c2R73sUX4j7NgxPQexKw"
},
"status": 0,
"msg": "success"
}