PHP code example of user10 / raas

1. Go to this page and download the library: Download user10/raas 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/ */

    

user10 / raas example snippets



$platformName = 'QAPlatform2'; // RaaS v2 API Platform Name
$platformKey = 'apYPfT6HNONpDRUj3CLGWYt7gvIHONpDRUYPfT6Hj'; // RaaS v2 API Platform Key

$client = new RaasLib\RaasClient($platformName, $platformKey);

$orders = $client->getOrders();

function createOrder($body)

$body = new CreateOrderRequestModel();

$result = $orders->createOrder($body);


function getOrder($referenceOrderID)

$referenceOrderID = 'referenceOrderID';

$result = $orders->getOrder($referenceOrderID);


function getOrders($options)

$accountIdentifier = 'accountIdentifier';
$collect['accountIdentifier'] = $accountIdentifier;

$customerIdentifier = 'customerIdentifier';
$collect['customerIdentifier'] = $customerIdentifier;

$externalRefID = 'externalRefID';
$collect['externalRefID'] = $externalRefID;

$startDate = date("D M d, Y G:i");
$collect['startDate'] = $startDate;

$endDate = date("D M d, Y G:i");
$collect['endDate'] = $endDate;

$elementsPerBlock = 114;
$collect['elementsPerBlock'] = $elementsPerBlock;

$page = 114;
$collect['page'] = $page;


$result = $orders->getOrders($collect);


function createResendOrder($referenceOrderID)

$referenceOrderID = 'referenceOrderID';

$result = $orders->createResendOrder($referenceOrderID);


$accounts = $client->getAccounts();

function getAccount($accountIdentifier)

$accountIdentifier = 'accountIdentifier';

$result = $accounts->getAccount($accountIdentifier);


function getAccountsByCustomer($customerIdentifier)

$customerIdentifier = 'customerIdentifier';

$result = $accounts->getAccountsByCustomer($customerIdentifier);


function createAccount(
        $customerIdentifier,
        $body)

$customerIdentifier = 'customerIdentifier';
$body = new CreateAccountRequestModel();

$result = $accounts->createAccount($customerIdentifier, $body);


function getAllAccounts()


$result = $accounts->getAllAccounts();


$catalog = $client->getCatalog();

function getCatalog()


$result = $catalog->getCatalog();


$exchangeRates = $client->getExchangeRates();

function getExchangeRates()


$result = $exchangeRates->getExchangeRates();


$status = $client->getStatus();

function getSystemStatus()


$result = $status->getSystemStatus();


$customers = $client->getCustomers();

function getCustomer($customerIdentifier)

$customerIdentifier = 'customerIdentifier';

$result = $customers->getCustomer($customerIdentifier);


function createCustomer($body)

$body = new CreateCustomerRequestModel();

$result = $customers->createCustomer($body);


function getAllCustomers()


$result = $customers->getAllCustomers();


$fund = $client->getFund();

function getCreditCards()


$result = $fund->getCreditCards();


function createCreditCard($body)

$body = new CreateCreditCardRequestModel();

$result = $fund->createCreditCard($body);


function createUnregisterCreditCard($body)

$body = new UnregisterCreditCardRequestModel();

$result = $fund->createUnregisterCreditCard($body);


function createDeposit($body)

$body = new DepositRequestModel();

$result = $fund->createDeposit($body);


function getDeposit($depositId)

$depositId = 'depositId';

$result = $fund->getDeposit($depositId);


function getCreditCard($token)

$token = 'token';

$result = $fund->getCreditCard($token);

autoload.php