Jump to content
huanxing.wu

how to use the xml rpc tag

Recommended Posts

hi there,

I'm able to get the xml rpc tag from revive as follow:

<?php
 /* <!-- Revive Adserver XML-RPC - Generated with Revive Adserver v4.1.0-dev -->  */
    //ini_set('include_path', '.:/usr/local/lib');
    require 'openads-xmlrpc.inc.php';

    if (!isset($OA_context)) $OA_context = array();

    $oaXmlRpc = new OA_XmlRpc('localhost', '/revive-adserver/www/delivery/axmlrpc.php', 80, false, 15);
    $adArray = $oaXmlRpc->view('zone:1', 0, '', '', 0, $OA_context, '');

    echo $adArray['html'];
?>

then I put this tag on my php page, but  i come out with errors.

so where can I get the openads-xmlrpc.inc.php file so that make it work?

 

Thanks

 

 

 

 


 

Share this post


Link to post
Share on other sites

Hi @andrewatfornax 

Thanks for help, I now manage to find the  openads-xmlrpc.inc.php file,

but I guess it won't work only by just copying the file to my PHP web app,

it still throw some undefined method errors,

so my question is:

how to correctly import all the files/libs so that the xmlrpc tag will work for a php web app?

(my php web app is NOT  hosted in the same server  as revive server)

 

Edited by huanxing.wu
typo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...