Topics
Support
Offer’s Details
Offer’s Details
Description
This function is intended to provides you ability to get offer details in XML format
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. |
| offer_id | required | numeric | 1 | Offer ID. |
Request example
<?php // API Function URL $api_function_call = 'http://[your_system_domain_name]/api/offer_details/'; // POST parameters array $post_params = array( 'User_ID' => '0000000000', 'API_Key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', '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
<?xml version="1.0" encoding="UTF-8"?>200 Adwords 2 3791 3 http://google.com http://google.com 2010-04-05 00:00:00 60 2 10.50 10.80 20.00 1 0 No Incentivized 2 0 0 0 0 20100405081529.jpg 1,3 1 2010-04-05 08:15:29 Live CPA Social Media, Internet, Finance & Insurance, Consumer Products, Clothing & Shoes, Baby United States of America, United Kingdom, United Arab Emirates 227 <title>United States of America</title>0 226 <title>United Kingdom</title>1 225 <title>United Arab Emirates </title>2