Skip to content

Commit 346bf38

Browse files
authored
Update README.md
1 parent 18464f0 commit 346bf38

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The API is far from complete, and currently only handles the basics of what you
77
To begin, use this dependency inside of your Maven pom.xml
88
```
99
<groupId>org.dec4234</groupId>
10-
<artifactId>JavaDestinyAPI</artifactId>
11-
<version>1.0</version>
10+
<artifactId>JavaDestinyAPI</artifactId>
11+
<version>1.0</version>
1212
```
13+
14+
Now you can start utilizing features of the api. The core class is called DestinyAPI, this is where you set your api key, and optionally: the client id, secret, and oauth code.
15+
```java
16+
DestinyAPI api = new DestinyAPI().setApiKey("YOUR_API_KEY_HERE").setClientID("CLIENT_ID").setClientSecret("CLIENT_SECRET").setOauthCode("OAUTH_CODE");
17+
```
18+
DestinyAPI __has__ to be initialized prior to any of the features inside the API that make requests to Bungie.net. The Client id, client secret and oauth code only need to be used whenever oauth is in play, so to start you don't need to bother with them.

0 commit comments

Comments
 (0)