Topics
Support
Offer Deploy
Offer Deploy
Description
This function is intended to provides you ability to deploy offer.
API function Information
| Info |
|---|
| API Function Name: offer_details |
| API Function Call: http://[your_system_domain_name]/api/offer_details/ |
POST Parameters
| Parameter | Option | Value Type | Example | Description |
|---|---|---|---|---|
| User_ID | required | string | 0000000000 | User ID. |
| API_Key | required | string | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | API key. |
| affiliate_id | required | numeric | 1 | Affiliate ID. |
| offer_id | required | numeric | 1 | Offer ID. |
Request example
<?php
// API Function URL
$api_function_call = 'http://[your_system_domain_name]/api/offer_deploy/';
// POST parameters array
$post_params = array(
'User_ID' => '0000000000',
'API_Key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'affiliate_id' => 1,
'offer_id' => 1
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_function_call);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);
$aResult = curl_exec($ch);
curl_close($ch);
echo '
';
print_r( $aResult );
echo '
';
?>
Response example
The offer has been successfully deployed.