PHP code example of juangirini / basekit-php-api-client
1. Go to this page and download the library: Download juangirini/basekit-php-api-client 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/ */
juangirini / basekit-php-api-client example snippets
seKit\Api\Client;
$client = Client::factory(
array(
'base_url' => 'http://api.example.org',
'consumer_key' => '1234567890',
'consumer_secret' => 'qwertyuiop',
'token' => 'asdfghjkl',
'token_secret' => 'zxcvbnm',
)
);
$createSite = $client->getCommand(
'CreateSite',
array(
'accountHolderRef' => 123,
'brandRef' => 456,
'domain' => 'test.example.org',
)
);
$response = $createSite->execute();
print_r($response);