Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jongotlin/bjornlunden

API wrapper for Björn Lundén
https://github.com/jongotlin/bjornlunden

Last synced: 2 months ago
JSON representation

API wrapper for Björn Lundén

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/jongotlin/BjornLunden.svg?branch=main)](https://travis-ci.org/jongotlin/BjornLunden)

# BjornLunden
API wrapper for Björn Lundén

## Install with composer
`composer require jongotlin/bjorn-lunden`

## Example
```php
$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);

```