Token Registration API

Call this function to register an active SMS or OTP token.

Below is the URL to access the API functions:

PUT /CentagateWS/webresources/token/registerActiveToken/{admin_username}

Parameters

NoParameterOccurenceDescription
1UsernameRequiredThe User’s Username
2TokenSnRequiredThe Mobile Number or Hardware Token Serial Number. This Mandatory For Token Type SMS and OTP. (For OTP make sure the Token is not bound with another user and token status is must be deactivate status)
3TokenTypeRequiredThe Token Type: SMS = 1 and OTP​ = 2
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: