Server-to-server integration guide
Step 1: Obtaining and testing JSON feed with offerers
JSON feed with offers:
{TELEGRAM_USER_ID} — numeric value of the Telegram user ID
{API_KEY} — your unique API key, issued in your cabinet
{IP} — user IP
{USER_AGENT} — The user's User Agent (the value needs to be escaped).
{LANG} — user language (from the Telegram API)
{IS_PREMIUM} — true or false depending on whether the user has premium subscription
Pass a user ID with each feed request. You do not need to cache the response.
Example of a feed response:
Step 2: Testing the feed
Get and parse a JSON feed with a single test offer.
Add the received offerer to the Earn/Quests screen.
Perform the actions specified in the offer to test it.
Step 3: Click Postback
When clicking on the action button, direct the user to the url
link. At the same time, perform a click_postback
request (HTTP GET).
It is mandatory to add the IP and ua of the user in the link.
Additionally, sub2, sub3, sub4 parameters can be added.
Example:
The is_done flag tells whether this user has executed this offer (to render the button, if necessary).
Step 4: Checking Task Statuses
There are two options to check task status.
You go to our API and check whether the user completed the task
Use API method check-complete-for-user from here https://wallapi.tappads.io/swagger/pub/index.html
We send you a postback everytime the user completes the task
You need to provide us the URL that will receive Postback requests after users perform actions. We will add this URL to our system.
An example of a postback after a target action has been performed:
After performing the target action, we perform an HTTP GET to the address, that you provide to us. We can pass some sub parameters to the postback:
Step 5: Obtaining the actual offers
After successful testing, we will provide you with real offers for further use. Testing of the real offer follows a similar scheme.
Last updated