Azoogle Ads API

Discussion in 'Affiliate Programs' started by zarcx, Mar 13, 2008.

  1. #1
    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?
     
    zarcx, Mar 13, 2008 IP
  2. forelmashi

    forelmashi Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what problem are you having
     
    forelmashi, Mar 13, 2008 IP
  3. zarcx

    zarcx Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    zarcx, Mar 13, 2008 IP
  4. forelmashi

    forelmashi Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    is the function defined?

    IDK i didn't use nusoap i used php5's soap stuff
     
    forelmashi, Mar 13, 2008 IP
  5. forelmashi

    forelmashi Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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";
    }
    ?>
     
    forelmashi, Mar 13, 2008 IP
  6. zarcx

    zarcx Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    awesome man thanks!

    I will try it now
     
    zarcx, Mar 13, 2008 IP
  7. zarcx

    zarcx Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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
     
    zarcx, Mar 13, 2008 IP
  8. forelmashi

    forelmashi Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    try saving the file with a php5 extension or whatever you have to do to use php5 with your webhost
     
    forelmashi, Mar 13, 2008 IP
  9. zarcx

    zarcx Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It's working now and it's printing the hash.


    Thanks forelmashi, really appreciate it!
     
    zarcx, Mar 13, 2008 IP
  10. forelmashi

    forelmashi Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Anytime :)
     
    forelmashi, Mar 13, 2008 IP