mrdandandan-destiny-api-module
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "mrdandandan-destiny-api-module", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Destiny API definitions for *", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
``` | ||
import {DestinyApiRequest} from 'mrdandandan-destiny-api-module'; | ||
DestinyApiRequest.setApiKey = '<bungienet-api-key>' | ||
import api from 'mrdandandan-destiny-api-module'; | ||
// Required for initialization | ||
DestinyApiRequest.setApiKey('<bungienet-api-key>'); | ||
// API things | ||
api.search.searchDestinyPlayer({ | ||
membershipType: 1, // XBOX | ||
displayName: 'mr dandandan' | ||
}).then( response => { | ||
// Do something | ||
}); | ||
``` |
33607
15