Git Product home page Git Product logo

Comments (6)

damirarh avatar damirarh commented on September 26, 2024

@Jeshibu what did you base your library import code on? Are you aware of any other REST API documentation? Any idea how to get the list of unlocked achievements for the user?

from playnite-successstory-plugin.

Jeshibu avatar Jeshibu commented on September 26, 2024

Nope, I've had a cursory look before and you got closer than I ever did. The online import is based on the GraphQL calls used for the profile pages like https://secure.oculus.com/my/quest/

from playnite-successstory-plugin.

Jeshibu avatar Jeshibu commented on September 26, 2024

I don't think the access token is the same one as the one used for the library fetching, looking at that API description.

from playnite-successstory-plugin.

Jeshibu avatar Jeshibu commented on September 26, 2024

I also can't reproduce the achievement definition call you did - my access_token sent along with https://secure.oculus.com/my/quest/ GraphQL requests does not look like OC|number|number as the API docs imply (though maybe it's just encoded), and I get a Invalid OAuth 2.0 Access Token error response. If we do need an app secret to fetch these, I have no idea where to get it.

from playnite-successstory-plugin.

damirarh avatar damirarh commented on September 26, 2024

Interesting. I used the exact same token which I intercepted from your plugin with a debugger attached to Playnite. I tried it just now with the token grabbed from the browser when visiting https://secure.oculus.com/my/quest/ and it also worked (to no surprise, as it should be the same type of token), although it's not structured as documented. Both tokens had the same leading and trailing characters: OCAS...ZDZD.

I tried changing the ` part of the URL to see the response in case of an invalid id or one I didn't have access to, but I got a different error than you:

{
  "error": {
    "message": "Unsupported get request. Object with ID '2376737905701577' does not exist, cannot be loaded due to missing permissions, or does not support this operation",
    "type": "OCApiException",
    "code": 100,
    "error_subcode": 33,
    "fbtrace_id": "A_3fodNAUrvYnJPg2d1fuwy"
  }
}

I have no idea why my token would work but yours doesn't.

from playnite-successstory-plugin.

Jeshibu avatar Jeshibu commented on September 26, 2024

Scraping https://auth.meta.com/settings/vyi/ is maybe the most robust way to retrieve data, despite it requiring another password entry. It seems they've also recently changed the layout of that page. Did you have any idea yet about getting tokens for these calls instead?

from playnite-successstory-plugin.

Related Issues (20)

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.