Giter Club home page Giter Club logo

Comments (5)

wopian avatar wopian commented on August 23, 2024

Use the self filter: api/edge/users?filter[self]=true 👍

from kitsu-tutorial.

guydht avatar guydht commented on August 23, 2024

Yeah, I know that, but you need to do another request just for the ID...... What I'm saying is that the token request should also return the user's ID, or at least have an option to tell it to, to save the extra request, since most of the time if someone needs the token, he'll need the ID of that user.

from kitsu-tutorial.

wopian avatar wopian commented on August 23, 2024

That's currently not possible, as its not a standard property of oAuth2

Once proper oAuth2 with scopes and (actual) app-specific clientId is implemented soon, it could be an extra addition that gets injected into the returned response. E.g:

{
  "access_token":"036b9495-16d3-476e-b53a-ed5dfc7d6513",
  "expires_in":7199,
  "refresh_token":"811235f4-b39d-4626-b940-34399e7bc737",
  "token_type":"Bearer",
  "user_id":"2",
}

Although this is better suited at https://github.com/hummingbird-me/hummingbird

from kitsu-tutorial.

guydht avatar guydht commented on August 23, 2024

Okay, thanks for explaining..... I didn't post it on the main Kitsu page because I thought it's more of a back-end problem rather than a front-end, but I guess I'm wrong. Next time I'll write on that thread.

from kitsu-tutorial.

Samanw avatar Samanw commented on August 23, 2024

Hi, is it possbile to get a anime myanimelist ID?

from kitsu-tutorial.

Related Issues (1)

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.