Skip to content

I'm having trouble with the api server authorization... #2797

Answered by kimjammer
OGbilboswagins asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Send a POST request to /auth/{id}, where {id} is the name of your plugin (it's basically only displayed in the authorization popup, it doesn't really matter.)
  2. Click Authorize in the youtube-music popup (might be hidden behind other windows)
  3. The response from the POST request will contain the accessToken field. This is your bearer access token.
  4. In all future requests to the API, in the header, include an "Authorization" field with the value set to "Bearer your-token-here"
    The swagger page has a "try it out" button, I highly recommend playing around with it to learn how it works.
    Example auth request

    Example api request

    PS: Sometimes the auth is glitchy and you need to restart the app be…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by OGbilboswagins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants