User Batch
Base URI
Actual time. The validity of query is limited to 300 seconds.
Login have to be integer between 10000000 and 99999999. {8}
Content type for sending data.
Security token generated by hash HMAC from sended data “variable=value;…”.
- Message digest algorithm: sha256
- Data: application/json, application/xml
- Secret Key: your private security key
Accept data type which you want to receive from the userbatch.com.
Request parameters
Actual time. The validity of query is limited to 300 seconds.
Language of user in ISO 639-1. {2}
User email. Crypted by aes-128-cbc.
Request headers
Content type for sending data.
Security token generated by hash HMAC from sended data “variable=value;…”.
- Message digest algorithm: sha256
- Data: application/json, application/xml
- Secret Key: your private security key
Accept data type which you want to receive from the userbatch.com.
Responses
Body
If is there nothing to see for this particular user the value is false.
System name.
Number of credit as a reward.
Advertisement title.
Advertisement info.
URL for graphic banner.
Action id by user status.
Examples
GET http://userbatch.com/api/advertisement/content?lang=en HTTP/1.1
GET http://userbatch.com/api/advertisement/content?lang=en&email=info@userbatch.com HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json
{
"active": true,
"name": "PH-SM Uzivatel zaznamenan do systemu",
"credit": 0,
"title": "Waiting",
"info": "Waiting to finishing your registration",
"banner": null
}
Request parameters
Actual time. The validity of query is limited to 300 seconds.
Language of user in ISO 639-1. /[a-z]{2}/
User email.
1 - Android 2 - iOS
Device specification
Request headers
Content type for sending data.
Security token generated by hash HMAC from sended data “variable=value;…”.
- Message digest algorithm: sha256
- Data: application/json, application/xml
- Secret Key: your private security key
Accept data type which you want to receive from the userbatch.com.
Responses
Body
Redirection URL for device vith advertisement.
Access code for next communication with userbatch.com and specific user. “UEx-” is userbatch.com prefix. /[0-9a-zA-Z-]{14}/
Request parameters
Actual time. The validity of query is limited to 300 seconds.
Access code for next communication with userbatch.com and specific user. “UEx-” is userbatch.com prefix. /[0-9a-zA-Z-]{14}/
Chose user action. Variants (id - name [which side created/update]): 1 - unknown user [system/-] 2 - new user [the advertiser, advertised] 3 - user registration on the new portal [advertised, the advertiser] 4 - active 1 week [advertised, the advertiser]
Advertised side can put into the usrebatch the second user email which was used during the registration.
Request headers
Content type for sending data.
Security token generated by hash HMAC from sended data “variable=value;…”.
- Message digest algorithm: sha256
- Data: application/json, application/xml
- Secret Key: your private security key
Accept data type which you want to receive from the userbatch.com.
Responses
Body
Examples
GET http://userbatch.com/api/advertisement/edituser?access=UEx-crmKoMogL6&action=2&email=info2@userbatch.com HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json
{
"success": true
}