Generates a sesssion and provide Authorization Token and server in response.
Name | Type | Description |
---|---|---|
request | AuthorizeByApplicationRequest |
The following request format is required for this method.
GET | POST https://api.linnworks.net/api/Auth/AuthorizeByApplication
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
This is an example of the request structure. Results will vary depending on your data.
request={
"ApplicationId": "f2d6d944-b698-4776-bfc8-3d76c1d122c9",
"ApplicationSecret": "344ef882-043e-40c9-b2ab-e5be49226c68",
"Token": "eda49e47-ea27-40fe-a760-03433040e56a"
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Id": "03b321e0-a7d4-4540-883f-9cab13cc8069",
"EntityId": "d6568287-a838-47e9-866b-55f97d936b44",
"DatabaseName": "sample string 3",
"DatabaseServer": "sample string 4",
"PrivateDatabaseServer": "sample string 5",
"DatabaseUser": "sample string 6",
"DatabasePassword": "sample string 7",
"AppName": "sample string 8",
"sid_registration": "03b321e0-a7d4-4540-883f-9cab13cc8069",
"UserName": "sample string 9",
"Md5Hash": "sample string 10",
"Locality": 0,
"SuperAdmin": true,
"TTL": 1,
"Token": "7b52dc11-7177-47cd-a1b6-abd6eb8fe1e0",
"AccessToken": "sample string 13",
"GroupName": "sample string 14",
"Device": "sample string 15",
"DeviceType": "sample string 16",
"UserType": "sample string 17",
"Status": {
"State": 0,
"Reason": "sample string 1",
"Parameters": {
"sample string 1": "sample string 2"
}
},
"UserId": "1c048408-2986-42f3-888a-3a0e89028e6a",
"Properties": {
"sample string 1": "sample string 2"
},
"Email": "sample string 19",
"Server": "sample string 20",
"PushServer": "sample string 21"
}