GithubHelp home page GithubHelp logo

node-steam-webapi's People

Contributors

eknowles avatar gislikonrad avatar jonbo avatar pdehaan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-steam-webapi's Issues

Allow passing cached JSON with methods

Currently, you have to put all code that might need WebAPI into the callback to Steam.ready. This is inconvenient and not technically necessary, since existing methods don't change.

I propose to add an ability to pass prepared JSON from GetSupportedAPIList to the library, thereby avoiding the need to download it dynamically every time. For example, Steam.ready could accept the parsed JSON instead of the callback.

getOwnedGames steamObj; all parameters required?

Leaving out certain steamObj parameters while using the getOwnedGames method results in thrown Errors.

/node_modules/steam-webapi/index.js:129
throw new Error("Missing required field: "+key);
Error: Missing required field: include_appinfo

/node_modules/steam-webapi/index.js:129
throw new Error("Missing required field: "+key);
Error: Missing required field: include_played_free_games

/node_modules/steam-webapi/index.js:129
throw new Error("Missing required field: "+key);
Error: Missing required field: appids_filter

Is this intended behavior? Documentation for getOwnedGames states: 'Free games are excluded by default.'

Error: connect ETIMEDOUT

We are occasionally seeing connection timeout errors.

Will node-steam-webapi still be in a usable state after this, or do we need to handle it?

 Error: connect ETIMEDOUT xxx_redacted_valve_ip_xxx:443
   File "util.js", line 874, in Object.exports._errnoException
   File "util.js", line 897, in exports._exceptionWithHostPort
   File "[as oncomplete] (net.js", line 1063, in TCPConnectWrap.afterConnect

Update version of qs library

The current version you have for the library has issues with vulnerabilities. Please update the version and republish to npm

getPublishedFileDetails array arguments incorrect

Problem:

The 'getPublishedFileDetails' method requires the key 'publishedfileids[0]' with the [0] included.

Code

const Steam  = require('steam-webapi');
Steam.key = apikey;
Steam.ready(function(err) {
	if (err) throw (err);

	var steam = new Steam();

	steam.getPublishedFileDetails({"itemcount": "1", "publishedfileids[0]": "835533549"}, function(err, data) {
		if (err) throw (err);
		console.log(data);
	});
}

Result:

"Missing required field: publishedfileids"

Code 2:

//Changed object key
{"itemcount": "1", "publishedfileids": "835533549"}

Result 2:

"HTTP 400 Bad Request"

Cause:

paramName = paramName.replace("[0]","");

Commenting out this line located in 'getParams' in the index.js file will make the request work as intended, returning the full request body properly. I have not made a PR because I do not know if removing that line will break other methods or not.

Unresolved function or method resolveVanityURL()

Hi,

I'm following your examples word for word but I get the Unresolved function or method resolveVanityURL() in Webstorm and when I run the program I get TypeError: Object [object Object] has no method 'resolveVanityURL' in the console.

I also couldn't find any function named resolveVanityURL or any such function in index.js in the root folder of the project. Is that still how the api is accessed?

Is the ISteamMicroTxn interface not supported?

Hi,

I don't see the ISteamMicroTxn interface in the list, or in the response to retrieveSteamAPIMethods(). Is there some reason why this interface isn't supported? (since it's all auto-generated).

Thanks

Lack of Examples

Could you give examples such as getting games from dota2 with certain heroes?

Or just more examples in general?

How to specify interface?

Some steam methods exist on multiple interfaces, e.g.:

ISteamMicroTxn.initTxn
ISteamMicroTxnSandbox.initTxn

How do you select between the two with this wrapper? (as it seems to omit the interface name).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.