dolorealiquam
Version:
TypeScript mappings for the Bungie.net API
46 lines (45 loc) • 1.79 kB
JavaScript
;
/**
* Bungie.Net API
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* OpenAPI spec version: 2.1.5
* Contact: support@bungie.com
*
* NOTE: This class is auto generated by the bungie-api-ts code generator program.
* https://github.com/DestinyItemManager/bugie-api-ts
* Do not edit these files manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Returns trending items for Bungie.net, collapsed into the first page of items
* per category. For pagination within a category, call GetTrendingCategory.
*/
function getTrendingCategories(http) {
return http({
method: 'GET',
url: 'https://www.bungie.net/Platform/Trending/Categories/'
});
}
exports.getTrendingCategories = getTrendingCategories;
/** Returns paginated lists of trending items for a category. */
function getTrendingCategory(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Trending/Categories/" + params.categoryId + "/" + params.pageNumber + "/"
});
}
exports.getTrendingCategory = getTrendingCategory;
/**
* Returns the detailed results for a specific trending entry. Note that trending
* entries are uniquely identified by a combination of *both* the TrendingEntryType
* *and* the identifier: the identifier alone is not guaranteed to be globally
* unique.
*/
function getTrendingEntryDetail(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Trending/Details/" + params.trendingEntryType + "/" + params.identifier + "/"
});
}
exports.getTrendingEntryDetail = getTrendingEntryDetail;