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:

  1. user_id: Represents the publisher’s app or website user ID who completed the task.
  2. task_id: Uniquely identifies the completed task.
  3. task_title: Denotes the title or name of the completed task.
  4. task_type: Specifies the type or category of the completed task.
  5. ip_address: The IP address of the user who clicked on the task.
  6. amount: The amount of reward earned by the user in the publisher’s app or website currency.
  7. reward: The amount of reward earned by the user in USD (United States Dollar).
  8. trans_id: Transaction ID, a unique identifier for the transaction.
  9. status: Indicates the status of the transaction. “1” typically represents an approved status, while “2” might denote a chargeback or dispute.
  10. signature: A hash generated using SHA256 algorithm, computed using the amount, transaction ID, and your secret key. This ensures data integrity and security, guarding against tampering.

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'; 
}