Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jongotlin/bjornlunden
- Owner: jongotlin
- Created: 2020-09-01T07:51:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T14:56:24.000Z (over 1 year ago)
- Last Synced: 2024-10-11T13:13:10.193Z (3 months ago)
- Language: PHP
- Size: 112 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```