2017 © Pedro Peláez
 

library revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

image

artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  • Friday, July 6, 2018
  • by Artistan
  • Repository
  • 1 Watchers
  • 3 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 133 % Grown

The README.md

Artistan/Revive-XmlRpc

remote procedure calls - RPC - is a basic API that has existed on Revive since it was OpenX Source. This is a basic update to that system and extracted into a package which can be used in virtually any Php Project to access your Revive server or manage multiple Revive servers. The response data is not exactly pretty for Ads Display, but hopefully I can come up with a version 3 that format the data into a more friendly format., (*1)

Revive AdServer xml api

extracted into a package and updated to use packages rather than pear, (*2)

requires

  • php-xml

uses

SETUP

composer

    "require": {
        "artistan/revive-xmlrpc": "*"
    }

Using The API

phpdoc documentation, (*3)

Version 2 xml

these examples were tested in Laravel 5.6 Commands, (*4)

configuration

loads definitions in this order each step will override/replace the previous step, (*5)

  1. loads /Assets/Config/revive-xmlrpc.php (defaults)
  2. laravel style configs (if function config exists)
  3. constructor array settings (first param can be an array)
  4. constructor individual settings
laravel config/env
php artisan vendor:publish --provider=artistan/revive-xmlrpc

you can edit the config/revive-xmlrpc.php file add these env variables to or .env files, (*6)

RVRPC_HOST=ads.me.com
RVRPC_BASEPATH=/api/v2/xmlrpc/
RVRPC_USERNAME=admin
RVRPC_PASSWORD=~test~
RVRPC_PORT=0
RVRPC_SSL=1
RVRPC_TIMEOUT=15
use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc;
$rpc = new OpenAdsV2ApiXmlRpc();
$list = $rpc->getAgencyList();
custom config initialization

uses ./Assets/Config/revive-xmlrpc.php for config if you do not provide it to the class., (*7)

use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc;

$config = [
    'host'=>'ads.me.com', 
    'basepath'=>'/www/api/v2/xmlrpc/',
    'username'=>'admin', 
    'password'=>'~test~', 
    'port'=>0, 
    'ssl'=>true, 
    'timeout'=>15
]


$rpc = new OpenAdsV2ApiXmlRpc($config);
$list = $rpc->getAgencyList();
full initialization
use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc;
$rpc = new OpenAdsV2ApiXmlRpc('ads.me.com', '/www/api/v2/xmlrpc/', 'admin', '~test~', 0, true, 15);
$list = $rpc->getAgencyList();

API Version 1 xml

use Artistan\ReviveXmlRpc\OpenAdsV1ApiXmlRpc;
$rpc = new OpenAdsV1ApiXmlRpc('ads.me.com', '/www/api/v1/xmlrpc/', 'admin', '~test~', 0, true, 15);
$list = $rpc->getAgencyList();

Ad Display Retrieval xml

        $rpc = new OpenAdsDisplayXmlRpc('ads.me.com', '/www/delivery/axmlrpc.php', 443, true, 15);
        $rpc->setRemoteInfo('remote_addr', 'chuck-dev');
        $list = $rpc->view(
            /* string    zone */ 'zone:1', 
            /* int campaignid */ 0, 
            /* string  target */ '', 
            /* string  source */ '', 
            /* 0|1   withText */ 0, 
            /* array  contect */ [], 
            /* strubg charset */ ''
        );
        var_dump(json_decode(json_encode($list),true));

Documentation Updates

PHP-Markdown-Documentation-Generator, (*8)

./vendor/bin/phpdoc-md generate --ignore=test,examples src > api.md

The Versions

06/07 2018

dev-master

9999999-dev https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

by Charles Peterson

api xmlrpc revive adsserver

06/07 2018

v2.3.2

2.3.2.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

by Charles Peterson

api xmlrpc revive adsserver

06/07 2018

v2.3.1

2.3.1.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

by Charles Peterson

api xmlrpc revive adsserver

06/07 2018

v2.3.0

2.3.0.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

by Charles Peterson

api xmlrpc revive adsserver

20/06 2018

v2.2.0

2.2.0.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

by Charles Peterson

api xmlrpc revive adsserver

25/05 2018

v2.1.0

2.1.0.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Charles Peterson

api xmlrpc revive adsserver

23/05 2018

v2.0.0

2.0.0.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Charles Peterson

api xmlrpc revive adsserver

16/05 2018

v1.2.0

1.2.0.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Charles Peterson

api xmlrpc revive adsserver

16/05 2018

v1.1.0

1.1.0.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Charles Peterson

api xmlrpc revive adsserver

07/05 2018

v1.0.1

1.0.1.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Charles Peterson

api xmlrpc revive adsserver

01/05 2018

v1.0.0

1.0.0.0 https://github.com/Artistan/revive-xmlrpc

package of the library classes to provide XmlRpc routines for accessing revive ad servers

  Sources   Download

GPL-2.0-or-later

The Requires

 

by Charles Peterson

api xmlrpc revive adsserver