Topics
Support
Offers Get All
Offers Get All
Description
This function is intended to provide offers list with all offers without any filters in XML format.
API function Information
| Info |
|---|
| API Function Name:offers_get_all |
| API Function Call: http://[your_system_domain_name]/api/offers_get_all/ |
POST Parameters
| Parameter | Option | Value Type | Example | Description |
|---|---|---|---|---|
| User_ID | required | string | 0000000000 | User ID. |
| API_Key | required | string | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | API key. |
Request example
<?php
// API Function URL
$api_function_call = 'http://[your_system_domain_name]/api/offers_get_all/';
// API Parameters
$post_params = array(
'User_ID' => '0000000000',
'API_Key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
);
$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"?>507 $500 Towards Baby Supplies 3 6454 3 http://platform.revenuestreet.com/affiliate/goto_offer/507/[AFFILIATE_ID]/[CREATIVE_ID]/PREVIEW http://www.onlinegiftrewards.com/rd_p?p=305194&c=35228-ogr_baby500_emc_g04&a=[AFFILIATE_ID][SUB_ID] 0000-00-00 00:00:00 60 1 1.20 1.40 1.75 1 0 1 2 Get $500 Toward Baby Supplies. Email, Search, Social and contextual only. NO Banner or incent Email, Search, Social and contextual only. NO Banner or incent 0 0 0 0 2,3,4 0 0 0 2011-01-25 13:49:37 ClickGen CPL Live 3 8 0 227 <title>United States of America</title>0 1 <title>Baby</title>2 34 <title>Email / Zip submit</title>11 32 <title>Social Media</title>31