PHP code example of mikeyp / veelo-api-client
1. Go to this page and download the library: Download mikeyp/veelo-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/ */
mikeyp / veelo-api-client example snippets
use \VeeloApi\VeeloApiClient;
// Initialize the client.
$client = VeeloApiClient::create();
// Get an authorization token.
$response = $client->generateToken('[email protected]', 'password');
echo $response['token'];
// Initialize the client with a token.
$client = VeeloApiClient::create(['token' => $token]);
// List admin groups.
$response = $client->listAdminGroups();
// List circles in an admin group.
$response = $client->listCircles($admingroup_id);
// Upload a file.
$response = $client->uploadFile($admingroup_id, fopen('path/to/file.pdf', 'r'));