mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-06 07:30:09 +08:00
Problem when search "Key:" in polish language.
This commit is contained in:
parent
20785ee92b
commit
b863377c87
@ -3,7 +3,7 @@ var SteamCommunity = require('../index.js');
|
|||||||
SteamCommunity.prototype.getWebApiKey = function(domain, callback) {
|
SteamCommunity.prototype.getWebApiKey = function(domain, callback) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.httpRequest({
|
this.httpRequest({
|
||||||
"uri": "https://steamcommunity.com/dev/apikey",
|
"uri": "https://steamcommunity.com/dev/apikey?l=english",
|
||||||
"followRedirect": false
|
"followRedirect": false
|
||||||
}, function(err, response, body) {
|
}, function(err, response, body) {
|
||||||
if (err) {
|
if (err) {
|
||||||
@ -21,7 +21,7 @@ SteamCommunity.prototype.getWebApiKey = function(domain, callback) {
|
|||||||
callback(null, match[1]);
|
callback(null, match[1]);
|
||||||
} else {
|
} else {
|
||||||
// We need to register a new API key
|
// We need to register a new API key
|
||||||
self.httpRequestPost('https://steamcommunity.com/dev/registerkey', {
|
self.httpRequestPost('https://steamcommunity.com/dev/registerkey?l=english', {
|
||||||
"form": {
|
"form": {
|
||||||
"domain": domain,
|
"domain": domain,
|
||||||
"agreeToTerms": "agreed",
|
"agreeToTerms": "agreed",
|
||||||
|
Loading…
Reference in New Issue
Block a user