Hello guys, I'm trying to access the Azoogle API, but no luck so far. Here is the code I have so far: <?php require_once('nusoap.php'); $client = new soapclient('http://login.azoogleads.com/soap/azads2_server.php'); $hash = $client->authenticate('my_id','login_info','password'); echo $hash; ?> Any ideas?
Fatal error: Call to undefined function: authenticate() in /mnt/gs01/herd02/33062/domains/domain/html/realtime.php on line 7 realtime.php is the name of my file
Here you might try the following if you have php5 with soap. Try saving it like soap.php5 and see if it works <?php try { $client = new SoapClient(null, array( 'location' => "https://login.azoogleads.com/soap/azads2_server.php", 'uri' => "#justputanyurlhereithink#")); $affid = 12345; $hash = $client->authenticate("$affid", "#affname#, "#affpass#"); echo $hash; } catch (Exception $e) { echo "Something wrong"; } ?>
this line: try { is giving me this error: Parse error: syntax error, unexpected '{' in /mnt/gs01/herd02/33062/domains/domain/html/realtime.php on line 2