This API is used for in app subscription for Android devices.
Resource URL
POST - /sms/2.0/inapp-subs/subscribe/{device_type}/{username}
Authorization
required
Bearer
Access Token
NOTE: Access Token here refers to the access authorization token.
device_type
required
Web, ROKU, iPhone, iPad, Android-Phone, Android-Tab etc are the clients by which an user can get registered.
username
required
Email ID is taken as the User name for an individual user. Get “username” from
Device Login response.
sub_token
required
Get Subscription Token from Google Play Store for Android In App Purchase.
Example Request URL
POST - http://__JTV__HOST__/sms/2.0/inapp-subs/subscribe/{device_type}/{username}
Example Return
Success
|
{ "code":0, "result":"success", "status":"success", "message":"subscription successful" } |
Failure
|
{ "code":1001, "result":"failure", "status":"failure", "message":"subscription failed" } |