POST api/user/ValidateToken4PeerTime
Validate a user token. it was provided for PeerTime
Request Information
URI Parameters
None.
Body Parameters
token, phone and user name
TokenValidBinderName | Description | Type | Additional information |
---|---|---|---|
token | string |
None. |
|
phone | string |
None. |
|
username | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "token": "sample string 1", "phone": "sample string 2", "username": "sample string 3" }
application/xml, text/xml
Sample:
<TokenValidBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DevTrackApi.Controllers"> <phone>sample string 2</phone> <token>sample string 1</token> <username>sample string 3</username> </TokenValidBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Validate a user token. it was provided for PeerTime
ApiReturnName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" } }
application/xml, text/xml
Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </ApiReturn>