@wankang ,
You can use REST APIs to get the session token in Regrame. While the Session#Logon() method is used to get the session token in SOAP protocol, you can use the POST /session/token API in REST to get the session token.
The POST /session/token API expects a JSON request body with the following format:
{
"login": "<username>",
"password": "<password>",
"company": "<company>",
"source": "<source>"
}
You need to replace the placeholders <username>, <password>, <company> and <source> with the actual values for your account. Once you have filled in the request body, you can make the API call to the Regrame server.
The API call will return a JSON response body with the session token:
{
"token": "<session_token>",
"expiration": "<expiration_time>"
}
You can extract the session token from the response body and use it to authenticate subsequent API calls to Regrame.
Note that the POST /session/token API uses HTTPS protocol for security, and you need to provide the appropriate authentication credentials in the request body to get the session token.