RestProvider
RestProvider Class
Example code
// Retrieve achievements of a user
const result = await api.providers.rest.getRequest('https://achievements.xboxlive.com/users/xuid(<xuid>)/history/titles')
// The response has a continuationToken. We can call .next() to retrieve the next page
const result2 = await result.next()
// Print out page 2 of the achievements api call
console.log(result2)default
_endpointstringFull Type: string
No Description
_headersobjectFull Type: {}
No Description
getRequestfunctionFull Type: (url: string, xblContractVersion?: undefined | number, continuationToken?: undefined | string, maxItems?: undefined, skipItems?: undefined) => Promise<HttpResponse>
No Description
_apiobjectFull Type: XboxWebApi
No Description
_defaultHeadersobjectFull Type: { 'Accept-Language': string; Accept: string; 'x-xbl-contract-version': string; 'Content-Type': string; }
No Description
_disableAuthHeaderbooleanFull Type: boolean
No Description
getApifunctionFull Type: () => XboxWebApi
No Description
resetDefaultHeadersfunctionFull Type: () => boolean
No Description
applyPaginationfunctionFull Type: (path: string, maxItems: any, skipItems: any, continuationToken: undefined | string) => string
No Description
getfunctionFull Type: (path: any, headers?: any) => Promise<HttpResponse<any>>
No Description
deletefunctionFull Type: (path: any, data: any, headers?: any) => Promise<HttpResponse<any>>
No Description
postfunctionFull Type: (path: any, data: any, headers?: any) => Promise<HttpResponse<any>>
No Description
putfunctionFull Type: (path: any, data: any, headers?: any) => Promise<HttpResponse<any>>
No Description