2.1 Generate Token

Description

You need to provide token in HTTP request header everytimes in order to use this API. This section will show you how to get the token. The access token will only valid for 30 minutes. After that, you need to generate token again to use the API.


Request

Data Structure

Field Type Mandatory Remarks
Username String Yes
Password String Yes

Sample

POST /Token/Generate
Content-Type: application/json
Accept-Language: en
{ "Username" : "username", "Password" : "password" }

Response|

Sample

{ "AccessToken" : "access_token", "RefreshToken" : "refresh_token", "Issued" : "2018-07-05T16:36:14+08:00", "Expires" : "2018-07-05T17:06:14+08:00" }
Copyright © 2018 Unixus Solutions Sdn. Bhd. All rights reserved.