UNPKG

steam-badge-unlocker

Version:

Provides an interface to solve most quests of the Steam Community badge.

21 lines (19 loc) 458 B
const SteamBadgeUnlocker = require('../index'); /** * @param {string} query * @returns {Promise<string>} */ SteamBadgeUnlocker.prototype.discussionsSearch = function (query) { return this.get({ url: 'https://steamcommunity.com/discussions/forum/search/', qs: { l: this.getLanguage(), q: query, }, headers: { 'Origin': 'https://steamcommunity.com', 'Accept': '*/*', 'Referer': 'https://steamcommunity.com/discussions/' }, }); }