PHP code example of miguelbemartin / buffer-sdk-php
1. Go to this page and download the library: Download miguelbemartin/buffer-sdk-php 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/ */
miguelbemartin / buffer-sdk-php example snippets
// Create a new AuthorizationToken
$auth = new AuthorizationToken('XXX');
// Create a new Buffer Wrapper Client
$buffer = new Buffer($auth);
// Get User
$user = $buffer->userService->getUser();
// Get the profiles
$profiles = $buffer->profileService->getProfiles();
composer