adamdburton/destiny-2-api-client

PHP API client for Destiny 2

v1.0.0 2017-09-22 14:32 UTC

This package is not auto-updated.

Last update: 2024-11-11 00:01:32 UTC


README

Packagist

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();