unknownskl / xbox-webapi-node Goto Github PK
View Code? Open in Web Editor NEWXbox web api client in Node.JS
License: MIT License
Xbox web api client in Node.JS
License: MIT License
Is there a way to fetch time played for a specific title?
I saw that you create the oauth link for signing into the xbox live account but it is possible to perform the request without copy pasting by having the username and password as part of the query string. Example can be found here: https://www.npmjs.com/package/async-xbox-live-api
issue with their library is that it only works if running it as a node script. Their async-disk-cache package which they use for storing authentication credentials, does not work on web so I've been looking for alternatives.
Hey,
I am trying to perform the auth with your library, my code looks like
const redirectUri = apiClient._authentication.generateAuthorizationUrl();
if (!authServerRunning) {
authServerRunning = true;
// looking for a free port, we prefer 8080
const port = await adapter.getPortAsync(8080);
adapter.log.info('Starting auth server');
apiClient.startAuthServer(() => {
console.log('Authentication is done. User logged in');
apiClient.isAuthenticated().then(() =>{
adapter.log.warn(apiClient._authentication);
}).catch(error => {
adapter.log.error(error);
});
}, port);
}
Then I call the redirectUri and login, the Server says login successful and then the process crashes with the following error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
--
at ServerResponse.setHeader (_http_outgoing.js:470:11)
at ServerResponse.header (/opt/iobroker/node_modules/iobroker.xbox/node_modules/express/lib/response.js:771:10)
at ServerResponse.send (/opt/iobroker/node_modules/iobroker.xbox/node_modules/express/lib/response.js:170:12)
at /opt/iobroker/node_modules/iobroker.xbox/node_modules/xbox-webapi/src/authentication.js:69:25
Any ideas?
Hi,
can we get current running aumId from Web Api, right now we get empty response from console status(focusAppAumid)?
Hello,Which api can get user's game and each game playtime? Please!
It would be super helpful if you make the market configurable here and fallback to us
for backward compatibility
xbox-webapi-node/src/providers/catalog.js
Lines 21 to 22 in 9868250
Hello and thank you for building this lib. I have a question regarding XBOX api: Is it possible to get game cost depending on region?
The providers are very basic now and they should be extended with more functions to make the library more complete.
Providers to added:
Released in v1.1.0:
hey, thank you for building this great web api example. I wondering which documentation do you use to build this project? I just wanted to build my own project that will provide me list of games and prices for them. so could you help me, please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.