Description

request API helper to easily make REST API calls, internally uses cross-fetch to make the actual request

Since

0.1.0

Async

Example

request({
path: '/user-quest-rewards/',
queryParams: {
"user_quest_id": [ "user-quest-id-1", "user-quest-id-2", "user-quest-id-3" ],
"reward_status": QuestRewardStatus.CLAIMED
},
method: "GET",
// optional access token
auth: createUserProfileAuth("zzz-yyy"),
headers: {
// any custom headers to be included
}
}).then(res => console.log(res))

Index

Variables

Generated using TypeDoc