<?php

/**
 * Example for CustomerReadDiscount()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerReadDiscount()->setCustomerDiscount()->get();
var_dump($result);
Exemplo n.º 2
0
<?php

require_once __DIR__ . '/../../bootstrap.php';
$rpf = new \rpf\system\rpf();
$rpf->getApi()->getUser()->httpAuth();
$rpf->getExtension()->getMysqlExport()->buildList()->sendDownloadCsv();
Exemplo n.º 3
0
<?php

require_once __DIR__ . '/../../bootstrap.php';
$rpf = new \rpf\system\rpf();
$rpf->getApi()->getUser()->httpAuth();
$rpf->getExtension()->getDomainExport()->buildDomainList()->sendDownloadCsv();
<?php

/**
 * Example for CustomerValidatePayinfo()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerValidatePayinfo()->get();
var_dump($result);
<?php

/**
 * Example for CustomerReadEntry()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerReadEntry()->setCustomerId($cId)->setUserId($uId)->setNewsletter()->addReturnAddress()->addReturnAddressCountry()->addReturnOrders()->addReturnAccountEntries()->addReturnSettlements()->addReturnLimits()->addReturnTariff()->addReturnUser()->addReturnPolicy()->addReturnHandles()->addReturnStaid()->addReturnOverview()->addReturnPayInfo()->addReturnPayInfoBank()->addReturnPayment()->addReturnPhoneEncodet()->get();
var_dump($result);
<?php

/**
 * Example for CustomerValidateEntry()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerValidateEntry()->get();
var_dump($result);
<?php

/**
 * Example for CustomerValidateAddress()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerValidateAddress()->get();
var_dump($result);
<?php

/**
 * Example for CustomerReadAddress()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerReadAddress()->setCustomerId(66)->addCountry()->addReturnPhoneEncodet()->get();
var_dump($result);
<?php

/**
 * Example for CustomerReadPayment()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerReadPayment()->setPaymentId()->get();
var_dump($result);
<?php

/**
 * Example for CustomerReadTitle()
 * @author Lukas M. Beck
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 */
/*
* External Access
*/
require_once '../../bootstrap.php';
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getCustomerReadTitle()->setCustomerTitle()->setValue()->get();
var_dump($result);
Exemplo n.º 11
0
<?php

require_once __DIR__ . '/../../bootstrap.php';
$rpf = new \rpf\system\rpf();
$rpf->getExtension()->getIndex()->showIndex();
<?php

/**
 * Example for usage of \api\module\domainReadEntry
 *
 * @author Andreas Doebeling <*****@*****.**>
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 * @link https://xing-ad.1601.com
 * @link https://www.1601.com
 */
/*
 * External Access
 */
require_once '../bootstrap.php';
// Include the framework
$rpf = new \rpf\system\rpf();
// Instantiate the framework
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getDomainReadEntry()->setDomainId($dn)->setOeid($oeid)->addSubdomain()->addMajor()->addFrontpage()->addHandles()->addLimits()->addNameserver()->addPhpini()->addResellerFields()->addSpf()->addWebalizerSettings()->addStaid()->get();
// Return result as array, primary-key set to domain
print_r($result);
// Print-out the api-response
Exemplo n.º 13
0
/**
 * This example shows how to work with the RPF if you
 * need to use a not yet implemented rpc-method
 *
 * @author Andreas Doebeling <*****@*****.**>
 * @copyright 1601.production siegler&thuemmler ohg
 * @link https://github.com/ADoebeling/RP2-Framework
 * @link https://xing-ad.1601.com
 * @link https://www.1601.com
 */
/*
 * External Access
 */
require_once __DIR__ . '/../../bootstrap.php';
// Load the framework
$rpf = new \rpf\system\rpf();
// Setup rpf
$rpf->getApi()->getUser()->httpAuth();
// Optional: Send http-auth if you need to authenticate first
$result = $rpf->getApi()->getPlaceholder()->setMethod('bbSomeClass::someMethod')->addParam('param1', true)->addParam('param2', 'string')->addParam('param3', ['a', 'r', 'r', 'y'])->get();
// Send api-call and fetch the result
print_r($result);
/*
 * Access within a rpf-extension
 */
require_once __DIR__ . '/../../bootstrap.php';
// Load the framework
use rpf\system\module\log;
// Optional: Link the logger-class
class myNewExtension extends \rpf\api\apiModule
{