Token Registration (One Time Pin) API

Call this function to register an One Time PIN token. You can specify the token status during the registration.

Below is the URL to access the API functions:

PUT /CentagateWS/webresources/device/register/onetimepin/{admin_username}

Parameters

NoNameOccurenceDescriptions
1usernameRequiredThe user's username
2statusRequiredToken status 1 = Pending, 2 = Valid, 3 = Temp Deactivated, 4 = Deactivated
3ValidityOptionalSpecify The Validity Of The SMS Code. In Seconds. If This Value Is Not Set, Default 5 Minutes Will Be Used.
4CenTokenRequiredThe Hmac Value Calculated Using SHA256 With SecretCode As Key And Plain Text From Admin Username + AuthToken

Sample Code

As in below there are some examples of source code of access the API functions: