POST api/mobileapp/code
Generates a locale sensitive Activation Code for the mobile app. If an unused, non-expired activation code already exists for the user it is returned.
Request Information
Authentication Method
Partner/Account AuthenticationURI Parameters
None.
Body Parameters
Mobile App Code (Create)Name | Description | Type | Additional information |
---|---|---|---|
userToken |
Token of end user |
string |
Required String length: inclusive between 20 and 20 |
localeCode |
Locale code of end user |
string |
Required A valid Locale Code |
Request Formats
application/json, text/json
Sample:
{ "userToken": "uuuuuuuuuUuuuuuuuuuu", "localeCode": "en-US" }
application/xml, text/xml
Sample:
<MobileAppCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SiteWit.PartnerAPI.Models.CreateModels"> <localeCode>en-US</localeCode> <userToken>uuuuuuuuuUuuuuuuuuuu</userToken> </MobileAppCode>
Response Information
Successful Response:Resource Description
Mobile App CodeName | Description | Type | Additional information |
---|---|---|---|
activationCode | string |
|
Response Formats
application/json, text/json
Sample:
{ "activationCode": "HW6AAY" }
application/xml, text/xml
Sample:
<MobileAppCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SiteWit.PartnerAPI.Models.ReturnModels"> <activationCode>HW6AAY</activationCode> </MobileAppCode>