Authentication
1. Sign up You will first need to sign up for a apikey. 2. Get the device token The first call before making any other is enterapp which will return a dtoken (device token) which needs to be stored for further calls.
|
1 2 3 |
<screach version=“3.0” action="" user="" did="" latitude="" longitude="" lang="" > <enter app password="" deviceType="" deviceResWidth="" deviceResHeight="" fbtoken="" fbid="" apikey="" /> </screach> |
3. The rest of the calls When doing any other calls for [...]
Check This OutActions and specific XML
Action list with their structure and description and xml structure.
Check This OutenterApp
enterApp The action needed to call when a user starts the app. This action registers the user to the Screach system and needs to be done before performing any other calls.
|
1 |
<enter app password="" deviceType="" deviceResWidth="" deviceResHeight="" fbtoken="" fbid="" /> |
screach user’s password, not fb user; deviceType is one of: iPhone, android, bbtouch, bbnotouch
|
1 2 3 |
<screach version=“3.0” action="" user="" did="" latitude="" longitude="" lang="" > <enter app password="" deviceType="" deviceResWidth="" deviceResHeight="" fbtoken="" fbid="" /> </screach> |
deviceTokenGet
Returns the push notification token that has been set with deviceTokenSet No action specific xml In the result tag of the returned xml you will get:
|
1 |
< devicetokenget token=”” /> |
Attributes token : the device token associated with the calling device
Check This Out