bungie-api-ts
Version:
TypeScript mappings for the Bungie.net API
19 lines (18 loc) • 633 B
JavaScript
import { get } from '../http.js';
const API_BASE = 'https://www.bungie.net/Platform/';
export function getAvailableLocales(http) {
return get(http, `${API_BASE}GetAvailableLocales/`);
}
export function getCommonSettings(http) {
return get(http, `${API_BASE}Settings/`);
}
export function getUserSystemOverrides(http) {
return get(http, `${API_BASE}UserSystemOverrides/`);
}
export function getGlobalAlerts(http, params) {
const strParams = {};
if (params.includestreaming !== undefined) {
strParams.includestreaming = params.includestreaming.toString();
}
return get(http, `${API_BASE}GlobalAlerts/`, strParams);
}