Dispute API documentation
Authentication Service
The Authentication service provides a set of methods for obtaining, completing and validating the Dispute API working session.
ValidateToken Method
To validate the access token of an Dispute API working session, call the ValidateToken method.
Method address:
/webapi/v1/Auth/ValidateToken
Request type: post
Key | Data type | Description |
---|---|---|
expiryDate | date | Access token expiry date |
token | string | Access token value |
success | boolean | Success flag |
An example of HTTP request
JSON
JSON
POST http://<Имя сервера Диспут+>/webapi/v1/auth/ValidateToken HTTP/1.1
Accept-Encoding: gzip,deflate
X-Authorization: <значение маркера доступа>
Content-Type: application/json
Content-Length: 0
Host: <Имя сервера Диспут+>
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
An example of HTTP response
JSON
JSON
HTTP/1.1 200 OKCache-Control: no-cache
Pragma: no-cache
Content-Length: 23
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 25 Apr 2018 12:01:46 GMT
{
"expiryDate":"2018-04-08T14:54:49.1055258+03:00",
"token":"<Значение маркер доступа>",
"success":true
}