Token Request

<< Click to Display Table of Contents >>

Navigation:  Software Overview > RMS Monitoring Software > Working with the RMS Software > Using RMS > API Function > Extract Data From RMS >

Token Request

In order for the request to be authorized, a token must first be requested. This token authenticates an RMS user whose rights apply.

oThe user needs the read right for the "Data" View.

oIf the user is disabled or deleted, the token is also invalid.

oThe token is in the JSON web token format and about 260 characters long.

oAfter 3 unsuccessful attempts (e.g. wrong password) the request for this user will be blocked for 1 min.

 

Parameter

Key


CompanyName

Company Name

Username

User name

Password

Password

RequestType

Must be "DataHistory"

 

 

Example:

Request

URL: API/RequestToken.ashx (HTTP POST)

Parameter:

{

 CompanyName: "Rotronic",

 Username: "Meier",

 Password: 123456,

 RequestType: "DataHistory",

}

Response from server

{

 UserId: 1234,

 RequestType: "DataHistory",

 Token: "xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxx",

 Status: "OK"

}

 

When using the Rotronic Cloud, the URL would be: https://rms.rotronic.com/RMS/API/RequestToken.ashx.