PHP code example of tafoyaventures / revive-xmlrpc
1. Go to this page and download the library: Download tafoyaventures/revive-xmlrpc library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tafoyaventures / revive-xmlrpc example snippets
use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc;
$rpc = new OpenAdsV2ApiXmlRpc();
$list = $rpc->getAgencyList();
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();
use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc;
$rpc = new OpenAdsV2ApiXmlRpc('ads.me.com', '/www/api/v2/xmlrpc/', 'admin', '~test~', 0, true, 15);
$list = $rpc->getAgencyList();
use Artistan\ReviveXmlRpc\OpenAdsV1ApiXmlRpc;
$rpc = new OpenAdsV1ApiXmlRpc('ads.me.com', '/www/api/v1/xmlrpc/', 'admin', '~test~', 0, true, 15);
$list = $rpc->getAgencyList();