mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #770] How do I authorize myself to use DELETE/POST/PUT endpoints? #471
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#471
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Aspecky on GitHub (Jan 14, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/770
I am very new to all of this authorization stuff and I couldn't find a newbie guide to walk me through the process of authorization to use the aforementioned endpoints.
So how would I be able to authenticate myself to use said endpoints using spotipy?
Thanks in advance!
@stephanebruckert commented on GitHub (Jan 16, 2022):
Not saying the docs couldn't be simplified, but everything should be there https://spotipy.readthedocs.io/en/2.19.0/#getting-started
Feedback on how you would improve it is very welcome!
@Aspecky commented on GitHub (Jan 17, 2022):
Thanks for replying, as a complete beginner, I didn't know how to use scopes, especially when the link in the docs that's supposed to send you to them returns a 404 error. Only after a bit of error searching I was able to understand how to use them and then realized how easy it all is.
(Where I found the answer I needed https://stackoverflow.com/questions/56173066/how-to-solve-insufficient-client-scope-in-python-using-spotipy)
@stephanebruckert commented on GitHub (Jan 17, 2022):
Good catch on finding the dead link! If you want, you can contribute to this repo and fix the doc. This is where the documentation code is:
https://github.com/plamere/spotipy/blame/07915e21e558b6b867fc00cfffc0d9b06d3266e7/docs/index.rst#L146
There is another reference to that link here:
https://github.com/plamere/spotipy/blame/master/FAQ.md#L39
@Aspecky commented on GitHub (Jan 17, 2022):
Sorry I ended up requesting two changes on the same thing, I mistakengly pasted the web archives link. But my latest change request is the correct link.
Thanks for the help!
@stephanebruckert commented on GitHub (Jan 17, 2022):
I can't see any new pull request, did you create it https://github.com/plamere/spotipy?
@Aspecky commented on GitHub (Jan 17, 2022):
Yes I did create it there, but then again, this is my first time making a pull request, so I am probably doing something wrong.
Here is what I did:
Now that I think about it, the 4th step is probably what I did wrong. Here is the correct link if you want to fix it yourself, but I'd appreciate if you show me how I can contribute.
@stephanebruckert commented on GitHub (Jan 17, 2022):
Ha yes, don't select the v3 branch but stay on
masterAnd to keep both changes on the same branch, just select the same branch twice just before clicking "Propose changes"
Then go to https://github.com/plamere/spotipy/pulls and create a pull request selecting your repo + chosen branch in the right dropdown.
Really appreciate your contribution!
@Aspecky commented on GitHub (Jan 17, 2022):
The master branche has the correct link, the V3 one doesn't, so I figured https://spotipy.readthedocs.io/en/2.19.0/ is using V3 index. So now I am bit confused on what's going on 😖
@stephanebruckert commented on GitHub (Jan 17, 2022):
No https://spotipy.readthedocs.io/en/2.19.0/ is using v2.19.0 (master). Just ignore v3 as it's not released yet. Also changes are pulled from v2 to v3, not the opposite. So your changes in v2/master will end up in v3 too at some point!
@Aspecky commented on GitHub (Jan 17, 2022):
But the master branche's index.srt is using the correct scopes link, but when you go to https://spotipy.readthedocs.io/en/2.19.0/ and click the scopes link, it takes you the link that V3 has.
@stephanebruckert commented on GitHub (Jan 17, 2022):
Oh you are right, actually the link was fixed on master https://github.com/plamere/spotipy/pull/738 3 months ago and the reason it's not reflected in the doc is that no new version was published. I will try to do that soon... Feel free to ignore that now, but thanks a lot for trying!