adamdburton / destiny-2-api-client
PHP API client for Destiny 2
Installs: 1 331
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 8
Open Issues: 2
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- guzzlehttp/guzzle: ~6.0
- phpunit/phpunit: ^6.2
This package is not auto-updated.
Last update: 2024-11-11 00:01:32 UTC
README
API Documentation
Endpoint documentation is available at https://bungie-net.github.io/multi/
Usage
You will need an API key from https://www.bungie.net/en/Application and some endpoints require access tokens (available by logging in through Bungie oAuth - see https://lowlidev.com.au/destiny/authentication-2 for authentiation flow examples)
$api = new \AdamDBurton\Destiny2ApiClient\Api('{api-key}');
Modules
App
Implementation - https://github.com/adamdburton/destiny-2-api-client/blob/master/src/Api/Module/App.php
Accessed through - $api->app()
Destiny2
Implementation - https://github.com/adamdburton/destiny-2-api-client/blob/master/src/Api/Module/Destiny2.php
Accessed through - $api->destiny2()
User
Implementation - https://github.com/adamdburton/destiny-2-api-client/blob/master/src/Api/Module/User.php
Accessed through - $api->user()
Forum
Not yet implemented
GroupV2
Not yet implemented
CommunityContent
Not yet implemented
Trending
Not yet implemented
oAuth
Some endpoints require an oAuth token with applicable scope permissions.
$api->user()->withAccessToken('{oauth-token}')->getMembershipDataForCurrentUser();