To access the Taskwall, you can use the following URL: https://adspenny.io/taskwall/[USER_ID]/[API_KEY]
Replace [USER_ID]
with a valid user ID and [API_KEY]
with the corresponding API key.
Example URL: https://adspenny.io/taskwall/1234-abcd/your_api_key
MAKE SURE TO USE THE APPROPRIATE VALUES FOR [USER_ID]
AND [API_KEY]
TO ENSURE THE URL WORKS CORRECTLY.
PARAMETERS
When a task is completed on the Taskwall, the system sends a postback containing relevant information to your app or website. This data is crucial for tracking user activities and rewarding them accordingly. Below are the parameters included in the postback:
It’s essential to handle and validate these parameters securely within your application to ensure the accuracy and integrity of the transaction data. Proper error handling mechanisms should also be implemented to address any discrepancies or issues during postback processing.
CONFIRMATION OF SUCCESSFUL POSTBACK
Upon receiving a postback request from our Taskwall system, your website should echo or return an “OK” response. This response serves as an acknowledgment that the postback was successfully received and processed by your system.
Ensure that your website’s endpoint for handling postback requests includes code to echo “OK” upon successful processing of each postback request.
Example Postback URL: https://domain.com/postback.php
POSTBACK PHP EXAMPLE
$user_id = $_GET['user_id'];
$task_id = $_GET['task_id'];
$task_title = $_GET['task_title'];
$task_type = $_GET['task_type'];
$ip_address = $_GET['ip_address'];
$amount = $_GET['amount'];
$reward = $_GET['reward'];
$trans_id = $_GET['trans_id'];
$status = $_GET['status'];
$signature = $_GET['signature'];
$secret_key = 'your_secret_key';
$generated_signature = hash('sha256', $amount . $trans_id . $secret_key);
if ($signature !== $generated_signature) {
echo 'Invalid Signature'; return;
}
$trans = Check transactions based on $trans_id;
if ($status == 1) {
if(!$trans) {
// Give reward to user
}
echo 'ok';
}else if($status == 2) {
// Chargeback reward from user
echo 'ok';
}