Git Product home page Git Product logo

xbox-webapi-node's Introduction

xbox-webapi-node's People

Contributors

dependabot[bot] avatar dept-jimkroon avatar foxriver76 avatar pradella avatar unknownskl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xbox-webapi-node's Issues

Time played

Is there a way to fetch time played for a specific title?

implement authentication without user copy/pasting link

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.

Authentication fails

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?

aumId

Hi,

can we get current running aumId from Web Api, right now we get empty response from console status(focusAppAumid)?

Improve API providers

The providers are very basic now and they should be extended with more functions to make the library more complete.

  • People
  • Pins
  • Profile
  • TitleHub

Providers to added:

  • Cqs
  • Presence
  • Usersearch
  • Userstats

Released in v1.1.0:

  • Achievements
  • Gameclips
  • Messages
  • Screenshots

which documentation do you use?

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?

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.