Methods
(async) handleEndpointOrFormat(format, url, method, specificData) → {Promise.<any>}
Parameters:
Name | Type | Description |
---|---|---|
format |
'json' | '' | The format of the data. |
url |
string | The URL to fetch data from. |
method |
'getNewsForApp' | 'getGlobalAchievementPercentagesForApp' | 'getPlayerSummaries' | 'getFriendList' | 'getPlayerAchievements' | 'getUserStatsForGame' | 'getOwnedGames' | 'getRecentlyPlayedGames' | The method to use. |
specificData |
string | Specific data to append to the endpoint. |
- Source:
Returns:
The fetched data.
- Type
- Promise.<any>