PHP code example of dasbit / apiclient
1. Go to this page and download the library: Download dasbit/apiclient 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/ */
dasbit / apiclient example snippets
php
$api = new dasbit\apiclient(new Guzzle, 'https://example-host.com/api');
$api->authenticate('login', 'password');
$response = $api->request('/entity-list');
$code = $response['code'];
$responseBody = $response['body']; // assoc array of decoded json string