Hi,
I'm trying to pull my subid's from Ads4dough through the PHP/SOAP interface. I believe that I am actually authenticating (ie, if I put the wrong password in I'll get an error), but I get a response telling me that there are no results found. I haven't been able to find any code snippets on the web to help me figure out what I'm doing wrong.
Here is my code:
I get this output:
You can find the wsdl here: NuSOAP: DirectTrackWebServices
You can download nusoap here: SourceForge.net: NuSOAP - SOAP Toolkit for PHP
Is it possible that the problem is on the ads4dough end? When I log into ads4dough I can export my stats and see my subids as expected so I'm not sure why I can't get them via the soap interface.
Thanks,
Grant
I'm trying to pull my subid's from Ads4dough through the PHP/SOAP interface. I believe that I am actually authenticating (ie, if I put the wrong password in I'll get an error), but I get a response telling me that there are no results found. I haven't been able to find any code snippets on the web to help me figure out what I'm doing wrong.
Here is my code:
PHP:
require_once('nusoap/lib/nusoap.php');
$client = new nusoap_client('http://ads4dough.directtrack.com/api/soap_affiliate.php');
$username = "CDxxxx";
$password = "password_here";
$parts = array(
'client' => 'ads4dough',
'add_code' => $username,
'password' => $password,
'primary' => 'subid1',
'secondary' => 'subid2',
'tertiary' => 'subid3',
'quaternary' => 'subid4',
'keyword' => '',
'program_id' => '',
'start_date' => '2008-11-03',
'end_date' => '2008-11-04'
);
$output = $client->call('getSubIDStats', $parts);
//print_r($client);
print_r($output);
I've even tried populating the program_id variable with no success.<?xml version="1.0" encoding="utf-8"?>
<subidStatistics>
<no_results>No Results found</no_results>
</subidStatistics>
You can find the wsdl here: NuSOAP: DirectTrackWebServices
You can download nusoap here: SourceForge.net: NuSOAP - SOAP Toolkit for PHP
Is it possible that the problem is on the ads4dough end? When I log into ads4dough I can export my stats and see my subids as expected so I'm not sure why I can't get them via the soap interface.
Thanks,
Grant