0.0.39 • Published 5 years ago
@stagg/datasources v0.0.39
Stagg Integration APIs
Provided by Stagg.co
Call of Duty API
Simply install the package and instantiate new instances with your own tokens.
import { CallOfDuty } from '@stagg/api'
(async () => {
const tokens = {
sso: '<YOUR-SSO-TOKEN-HERE>',
xsrf: '<YOUR-CSRF/XSRF-TOKEN-HERE>',
atkn: '<YOUR-ATKN-TOKEN-HERE>',
}
const API = new CallOfDuty(tokens)
const myProfiles = await API.Identity()
console.log(myProfiles)
})()