Support

Use our Support system


Look for an answer in our Knowledge Base. Submit your requests here.

E-mail / Instant Manager service


support@effectus-software.com
AIM: umgbiz

Phone


1-727-517-3839
#800 (coming soon)

Working hours


Monday-Friday, 9am-5pm EST



Offers Get By Parameters

Offers Get By Parameters

Description

This function is intended to provide offers list in XML format.

API function Information

Info
API Function Name: offers
API Function Call: http://[your_system_domain_name]/api/offers/

POST Parameters

Parameter Option Value Type Example Description
User_ID required string 0000000000 User ID.
API_Key required string XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX API key.
date_from
optional string 30/12/2011 Date From range parameter
date_to optional string 31/12/2011 Date To range parameter
country optional numeric 0 Country ID. Could be used for filtering by country. Рossible values
category optional numeric 0 Category ID. Could be used for filtering by category. Рossible values
type optional numeric 0 Type ID. – Could be used for filtering by type. Рossible values
avail_type optional
numeric 3 Available Type ID. Could be used for filtering by availability. Рossible values
status optional
numeric 0 Status ID. Could be used for filtering by status. Рossible values
advertiser_id optional numeric 0 Advertiser ID. Could be used for filtering by Advertiser.

Request example


<?php 

	// API Function URL
	$api_function_call = 'http://debug.platform.revenuestreet.com/api/offers/';

	// API Parameters
	$post_params = array(
        'User_ID' => '9240703583',
        'API_Key' => 'DE49A265A91E5AF5C60DECB1F8FA30EE',
        'date_range' => '0,,',
        'date_from' => '',
        'date_to' => '',
        'country' => 0,
        'category' => 0,
        'type' => 0,
        'avail_type' => 3,	// Hidden
        'status' => 0,
        'advertiser_id' => 0
    );	

	$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"?>

	
		3792
		1
		affiliate
6d0bd9c8d2eadeb088b34895fde10c55
		10101.00
		Microsoft
		http://microsoft.com
		1
		Bill
		Geits
		
1112223333
		
		bill@microsoft.com
		227
#2 Some ave
New York 66 12300 1 3 1 1 11111111111 1 1 0 1 0 20100406122456.jpg affiliate 0 2010-09-09 06:53:42 2010-04-06 12:24:56 5 24 <title>Other</title> 35