bungie-net-core
Version:
An easy way to interact with the Bungie.net API
38 lines (37 loc) • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTrendingCategories = getTrendingCategories;
exports.getTrendingCategory = getTrendingCategory;
exports.getTrendingEntryDetail = getTrendingEntryDetail;
async function getTrendingCategories(http) {
const baseUrl = `https://www.bungie.net/Platform/Trending/Categories/`;
const searchParams = undefined;
return await http({
method: 'GET',
baseUrl,
searchParams,
body: undefined
});
}
async function getTrendingCategory(http, params) {
const baseUrl = `https://www.bungie.net/Platform/Trending/Categories/${params.categoryId}/${params.pageNumber}/`;
const searchParams = undefined;
return await http({
method: 'GET',
baseUrl,
searchParams,
body: undefined
});
}
async function getTrendingEntryDetail(http, params) {
const baseUrl = `https://www.bungie.net/Platform/Trending/Details/${params.trendingEntryType}/${params.identifier}/`;
const searchParams = undefined;
return await http({
method: 'GET',
baseUrl,
searchParams,
body: undefined
});
}