Java wrapper for Bungie's Destiny API.
Get your Bungie Application API login through https://www.bungie.net/en/Application
Using your credentials for the Bungie API, create a new DestinyAPI object.
DestinyAPI destinyApi = new DestinyAPI("API-KEY", "CLIENT-ID", "CLIENT-SECRET");
API calls can then be made through the DestinyAPI
instanced object. See https://bungie-net.github.io/ for the full list of API calls and callbacks.
To make authorized user requests, you must create a DestinyAPI.APIUser object.
DestinyAPI.APIUser user = new DestinyAPI.APIUser("user-access-token", "user-refresh-token", accessTokenExpiryTimeInSeconds, refreshTokenExpiryTimeInSeconds);
You can pass the DestinyAPI.APIUser
object into API calls that require an authorized user. Access tokens are checked and refreshed periodically on every request.
Using your Bungie API Key, initialize the DestinyManifest.
DestinyManifest.init("API-KEY", DestinyManifestFormat);
DestinyManifestFormat is an enum with two options:
- JSON
- SQLite
Subsequent calls to the manifest can be made through DestinyManifest.getInstance()
.