PHP code example of jongotlin / bjorn-lunden
1. Go to this page and download the library: Download jongotlin/bjorn-lunden 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/ */
jongotlin / bjorn-lunden example snippets
$bjornLunden = new \JGI\BjornLunden\BjornLunden(new \GuzzleHttp\Client(['http_errors' => false]));
$credentials = new \JGI\BjornLunden\Credentials($userKey, $clientId, $clientSecret);
$token = $bjornLunden->tokens($credentials)->create();
$credentials->setToken($token->getAccessToken());
$users = $bjornLunden->users($credentials)->all();
var_dump($users);