Topics
Support
Advertisers Get By Parameters
Advertisers Get By Parameters
Description
This function is intended to provide advertisers list in XML format.
API function Information
| Info |
|---|
| API Function Name: advertisers |
| API Function Call: http://[your_system_domain_name]/api/advertisers/ |
POST Parameters
| Parameter | Option | Value Type | Example | Description |
|---|---|---|---|---|
| User_ID | required | string | 0000000000 | User ID. |
| API_Key | required | string | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | API key. |
| keyword | optional | string | some keyword | Could be used for search and additional filtering by Company, Contact, Email or Affiliate ID. |
| type | optional | numeric | 1 | Advertiser Type ID. Could be used for filtering by type. |
| status | optional | numeric | 1 | Advertiser Status ID. Could be used for filtering by status. |
| manager | optional | numeric | 1 | Advertiser Manager ID. Could be used for filtering by manager. |
Request example
<?php
// API Function URL
$api_function_call = 'http://[your_system_domain_name]/api/advertisers/';
// API Parameters
$post_params = array(
'User_ID' => '000000000',
'API_Key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'type' => 1,
'status' => 1,
'manager' => 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"?>575 2 101inksdeal 4c00612f4ca08baad29c9b7bbe1456c1 1059.50 101inks 1 Roland Davoudikia 818-993-7802 x 103 818-241-7918 roland@101inks.com 227 1110 N Brand BlvdGlendale 72 91202 1 Ramond Davoudikia 818-993-7802 x 101 ray@1ink.com Roland Davoudikia 818-993-7802 x 103 roland@101inks.com 2 1 0 1 0 0 0.03 0 borotu 0 2010-08-25 14:18:31 2010-01-25 15:08:33