campaignEmailNew - create a new campaign

campaignEmailNew (string ApiKey, array int list_ids, string subject, string html, string names, string values)

Method create a new campaign.

Parameters
apikey API key to access to your account
list_ids

Id of campaign obtained by campaignGetAll — for a particular list, or multiple values ​​separated by commas (for paid users).

isTransactional Type of email-campaign: normal or transactional (true/false)
subject Subject of the campaign
html The content of message in HTML
names Additional parameter: the name of the additional fields separated by commas
from_email Email address of sender
from_name Name of sender
reply_to Email address for reply
campaign_name Campaign name (by default matches with the subject)
lang Language of locale (titles, automatically added to the message)
google_analytics Using of google analytics
authorization Authorization (value: on, off)
values Additional parameter: values ​​for additional fields, separated by commas
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form:
http://api.feedgee.com/1.0/campaignEmailNew?apikey=APIKEY&list_ids=LIST_IDS&subject=SUBJECT&html=HTML&names=NAMES&values=VALUE&isTransactional=(TRUE/FALSE)

The return value
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with created campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignEmailNew";
echo"Method:".$method."<br>";
//parameters
$list_ids="0001";
$subject="test";
$html=urlencode("<html>test</html>");
$parameters="apikey=$api_key&list_ids=$list_ids&subject=$subject&html=$html&names=&values=";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat(" ",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix=" ";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignEmailNew>
<tem:apikey>string</tem:apikey>
<tem:list_ids>string</tem:list_ids>
<tem:subject>string</tem:subject>
<tem:html>string</tem:html>
<tem:names>string</tem:names>
<tem:values>string</tem:values>
</tem:campaignEmailNew>
</soapenv:Body>
</soapenv:Envelope>

campaignGetAll - output all campaigns

campaignGetAll (string ApiKey)

Method output a list of all campaigns with their numbers, names and complete information about them.

Parameters
apikey API key to access to your account
sentDateFrom Filter's result includes all sent campaigns after set date
sentDateTo Filter's result includes all sent campaigns before set date
To reduce API timeouts, please use both parameter to receive campaigns sent in certain period of time. To receive latest campaigns request use this method with sentDateFrom filte value.
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignGetAll?apikey=API_KEY&sentDateFrom=SENT_DATE_FROM&sentDateTo=SENT_DATE_TO

The return value
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
total Total number of sent campaigns
data Array with the list of campaigns
Campaign Array with the data of campaigns
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
</Campaign>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignGetAll";
echo"Method:".$method."<br>";
//Method name
$parameters="apikey=$api_key;
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat("&nbsp;&nbsp;",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix="&nbsp;&nbsp;";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignGetAll>
<tem:apikey>string</tem:apikey>
</tem:campaignGetAll>
</soapenv:Body>
</soapenv:Envelope>

campaignEmailContent - obtaining data about campaign

campaignEmailContent (string ApiKey, int campaign_Id)

Method allows to obtain information about any campaign.

Parameters
apikey API key to access to your account
campaign_Id Id of campaign obtained by campaignGetAll
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignEmailContent?apikey=API_KEY&campaign_Id=CAMPAIGN_ID

The return value: data of campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with the requested campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignEmailContent";
echo"Method:".$method."<br>";
//parameters
$campaign_id="00001";
$parameters="apikey=$api_key&campaign_id=$campaign_id";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat("&nbsp;&nbsp;",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix="&nbsp;&nbsp;";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignEmailContent>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
</tem:campaignEmailContent>
</soapenv:Body>
</soapenv:Envelope>

campaignEmailUpdate - update campaign

campaignEmailUpdate (string ApiKey, int campaign_id, array int list_ids, string subject, string html, string names, string values)

Method allows to update created campaign.

Parameters
apikey API key to access to your account
campaign_id Number of the updating campaign obtained by campaignGetAll
list_ids

Id of campaign obtained by campaignGetAll — for a particular list, or multiple values ​​separated by commas (for paid users).

subject Subject of the campaign
html The content of message in HTML, encoded for transmission in the query string (for details, see the request for PHP)
names Additional parameter: the name of the additional fields separated by commas
from_email Email address of sender
from_name Name of sender
reply_to Email address for reply
campaign_name Campaign name (by default matches with the subject)
lang Language of locale (titles, automatically added to the message)
google_analytics Using of google analytics
authorization Authorization (value: on, off)
values Additional parameter: values ​​for additional fields, separated by commas
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignEmailUpdate?apikey=APIKEY&campaign_id=CAMPAIGN_ID&list_ids=LIST_IDS&subject=SUBJECT&html=HTML&names=NAMES&values=VALUES

The return value: data of edited campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with edited campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule


Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignEmailUpdate";
echo"Method:".$method."<br>";
//parameters
$list_ids="00001";
$subject="test";
$html=urlencode("<html>test</html>");
$campaign_id="000001";
$parameters="apikey=$api_key&list_ids=$list_ids&campaign_id=$campaign_id&subject=$subject&html=$html&names=&values=";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat(" ",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix=" ";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignEmailUpdate>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
<tem:list_ids>string</tem:list_ids>
<tem:subject>string</tem:subject>
<tem:html>string</tem:html>
<tem:names>string</tem:names>
<tem:values>string</tem:values>
</tem:campaignEmailUpdate>
</soapenv:Body>
</soapenv:Envelope>

campaignClone - cloning campaign

campaignClone (string ApiKey, int campaign_Id)

Method allows to clone the selected campaign.

Parameters
apikey API key to access to your account
campaign_Id Id of campaign obtained by campaignGetAll
name_prefix Additional parameter: text that be added before the name of the campaign (by default 'copy of')
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignClone?apikey=API_KEY&campaign_Id=CAMPAIGN_ID&name_prefix=name_prefix

The return value: data of copied campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with cloned campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignClone";
echo"Method:".$method."<br>";
//parameters
$name_prefix="test";
$campaign_id="00001";
$parameters="apikey=$api_key&name_prefix=$name_prefix&campaign_id=$campaign_id";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject

if(!is_numeric($key)){

$prefix=str_repeat("&nbsp;&nbsp;",$level-1);

echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix="&nbsp;&nbsp;";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP Request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignClone>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
<tem:name_prefix>string</tem:name_prefix>
</tem:campaignClone>
</soapenv:Body>
</soapenv:Envelope>

campaignEmailSendTest - sending a test message of campaign

campaignEmailSendTest (string ApiKey, int campaign_Id, string email)

Method sends a test message to your email mail address.

Parameters
apikey API key to access to your account
campaign_Id Id of campaign obtained by campaignGetAll
email Additional parameter: the address of the recipient of the test message (by default account address)
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignEmailSendTest?apikey=API_KEY&campaign_Id=CAMPAIGN_ID&email=EMAIL

The return value: data of test campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with the test campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule



Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignEmailSendTest";
echo"Method:".$method."<br>";
//parameters
$email="test@test.com";
$campaign_id="0001";
$parameters="apikey=$api_key&email=$email&campaign_id=$campaign_id";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat("&nbsp;&nbsp;",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix="&nbsp;&nbsp;";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignEmailSendTest>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
<tem:email>string</tem:email>
</tem:campaignEmailSendTest>
</soapenv:Body>
</soapenv:Envelope>

campaignEmailSendNow - sending campaign

campaignEmailSendNow (string ApiKey, int campaign_Id)

Method send earlier created campaign.

Parameters
apikey API key to access to your account
campaign_Id Id of campaign obtained by campaignGetAll
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignEmailSendNow?apikey=API_KEY&campaign_Id=CAMPAIGN_ID

The return value: data of sent campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with sent campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule



Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{

"success":1,

"errors":0,

"error":"",

"warning":"",

"data":

[{"id":int,

"name":"string",

"from_title":"string",

"from_email":"string",

"reply_to":"string",

"maillist_ids":[int],

"subject":"string",

"body":"string",

"social_links":bool,

"status":"string",

"template_id":int,

"google_analytics":bool,

"locale":"string",

"schedule":

{"STATUS":"string",

"RUNDATETIME":"string",

"SENDONLYTESTEMAIL":bool,

"TESTEMAILDESTINATION":"string",

"CREATED":"string",

"CAMPAIGNID":int}}]

}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignEmailSendNow";
echo"Method:".$method."<br>";
//parameters
$campaign_id="00001";
$parameters="apikey=$api_key&campaign_id=$campaign_id";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccess error" ;
}

SOAP request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignEmailSendNow>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
</tem:campaignEmailSendNow>
</soapenv:Body>
</soapenv:Envelope>

campaignEmailSchedule - set campaign in schedule

campaignEmailSchedule (string ApiKey, int campaign_Id, stringdate_time)

Method allows to set on schedule created campaign.

Parameters
apikey API key to access to your account
campaign_Id Id of campaign obtained by campaignGetAll
date_time

Scheduled date and time set in the format MM/DD/YYYY HH: MM: SS

By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignEmailSchedule?apikey=API_KEY&campaign_Id=CAMPAIGN_ID&date_time=DATE_TIME

The return value: data of set on the schedule campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with set on schedule campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule

Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignEmailSchedule";
echo"Method:".$method."<br>";
//parameters
$date_time=urlencode("12/12/201302:02:02");
$campaign_id="17703";
$parameters="apikey=$api_key&date_time=$date_time&campaign_id=$campaign_id";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat("&nbsp;&nbsp;",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix="&nbsp;&nbsp;";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignEmailSchedule>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
<tem:date_time>string</tem:date_time>
</tem:campaignEmailSchedule>
</soapenv:Body>
</soapenv:Envelope>

campaign Pause - suspend campaig in schedules

campaignPause (string ApiKey, int campaign_Id)

Method suspend (set on pause) created earlier and set on schedule campaign.

Parameters
apikey API key to access to your account
campaign_Id Id of campaign obtained by campaignGetAll
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignPause?apikey=API_KEY&campaign_Id=CAMPAIGN_ID

The return value: data of suspended campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with a suspended campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule



Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

?>
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignPause";
echo"Method:".$method."<br>";
//parameters
$campaign_id="00001";
$parameters="apikey=$api_key&campaign_id=$campaign_id";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat("&nbsp;&nbsp;",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix="&nbsp;&nbsp;";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignPause>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
</tem:campaignPause>
</soapenv:Body>
</soapenv:Envelope>

campaignDelete - delete campaign

campaignDelete (string ApiKey, int campaign_Id)

Method allows to delete campaign. Valid only for not sent campaign

Parameters
apikey API key to access to your account
campaign_Id Id of campaign obtained by campaignGetAll
By default, the result is returned in XML, to get the JSON you need to add an additional parameter &output = json

Request form: http://api.feedgee.com/1.0/campaignDelete?apikey=API_KEY&campaign_Id=CAMPAIGN_ID

The return value: data of deleted campaign
success Value 1 if success, 0 if error
errors The number of successful requests
error Text description of error
code Error code
warning Additional warnings for the xml, not output when null
data Array with deleted campaign
Campaign Array with data of campaign
id Number of campaign
name Name of campaign
from_title Sender name
from_email Email address of sender
reply_to Email address for reply
maillist_ids Array with numbers of lists, on which campaign sent
int Number of list
subject Subject
social_links Using of social links
status Status of campaign
template_id Number of template message
google_analytics Using of google analytics
locale Language of locale (titles, automatically added to the message)
schedule Array with data of the campaign schedule (if campaign set on schedule)
STATUS Status of campaign
RUNDATETIME Run date and time
SENDONLYTESTEMAIL Sending only a test message
TESTEMAILDESTINATION Address of the recipient of the test message
CREATED Date and time of created campaign
CAMPAIGNID Number of campaign

Example (XML)

<ResultOfCampaign>
<success>int</success>
<errors>int</errors>
<error>string</error>
<code>int</code>
<warning>string</warning>
<data>
<Campaign>
<id>int</id>
<name>string</name>
<from_title>string</from_title>
<from_email>string</from_email>
<reply_to/>
<maillist_ids>
<int>int</int>
</maillist_ids>
<subject>string</subject>
<social_links>bool</social_links>
<status>string</status>
<template_id>int</template_id>
<google_analytics>bool</google_analytics>
<locale>string</locale>
<schedule>
<STATUS>string</STATUS>
<RUNDATETIME>string</RUNDATETIME>
<SENDONLYTESTEMAIL>bool</SENDONLYTESTEMAIL>
<TESTEMAILDESTINATION/>
<CREATED>string</CREATED>
<CAMPAIGNID>int</CAMPAIGNID>
</schedule>
</Campaign>
</data>
</ResultOfCampaign>

Example (JSON)

{
"success":1,
"errors":0,
"error":"",
"warning":"",
"data":
[{"id":int,
"name":"string",
"from_title":"string",
"from_email":"string",
"reply_to":"string",
"maillist_ids":[int],
"subject":"string",
"body":"string",
"social_links":bool,
"status":"string",
"template_id":int,
"google_analytics":bool,
"locale":"string",
"schedule":
{"STATUS":"string",
"RUNDATETIME":"string",
"SENDONLYTESTEMAIL":bool,
"TESTEMAILDESTINATION":"string",
"CREATED":"string",
"CAMPAIGNID":int}}]
}

Request in PHP

<?
//Your key to access the API
$api_key="00000000000000000000000000000000";
//Method name
$method="campaignDelete";
echo"Method:".$method."<br>";
//parameters
$campaign_id="00001";
$parameters="apikey=$api_key&campaign_id=$campaign_id";
echo"Parameters:".$parameters."<br>";
//Create a GET-request
$api_url="http://api.feedgee.com/1.0/$method?$parameters&output=json";
echo"Url:".$api_url."<br><hr/>";
//Make a request to the API-server
$result=file_get_contents($api_url);
//echo$result;
if($result){
//Decoding of answer API-server
$jsonObj=json_decode($result);
if(null===$jsonObj){
//Error in the received reply
echo"InvalidJSON";
}
else{
if(!empty($jsonObj->error)){
//Error of get the list of subscribers
echo"Anerroroccured:".$jsonObj->error;}
//Display the names and values
echo"Here'salistofyourdata:<br>";
data_output($jsonObj->data);
}
}else{
//Error connecting to API-server
echo"APIaccesserror";
}
//Displays data from indented
functiondata_output($obj,$level=0){
if(is_array($obj)||is_object($obj)){
if(is_object($obj)){
$obj=(array)$obj;
}
echocount($obj)>1?"<br/>n":"";
foreach($objas$key=>$value){
//itwasobject
if(!is_numeric($key)){
$prefix=str_repeat(" ",$level-1);
echo$prefix.$key.":";
}
data_output($value,$level+1);
}
}
else{
$prefix=" ";
if($obj===false)$obj='false';
echo$prefix.$obj."<br/>n";
}
}
?>

SOAP request

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:campaignDelete>
<tem:apikey>string</tem:apikey>
<tem:campaign_id>int</tem:campaign_id>
</tem:campaignDelete>
</soapenv:Body>
</soapenv:Envelope>