mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #356] [MERGED] Add custom auth URLs and simplify get/etc methods #410
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#410
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?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/356
Author: @marioortizmanero
Created: 7/30/2022
Status: ✅ Merged
Merged: 1/4/2023
Merged by: @ramsayleung
Base:
master← Head:config-base📝 Commits (4)
8ce9791Prefix URLs9434b88Switch toStringe6b141eSimplify request methods in base client4cabf6aRenameendpointtoapifor consistency📊 Changes
8 files changed (+196 additions, -194 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
doc/uml/trait_hierarchy.plantuml(+3 -2)📝
src/auth_code.rs(+2 -1)📝
src/auth_code_pkce.rs(+2 -1)📝
src/clients/base.rs(+81 -121)📝
src/clients/mod.rs(+47 -8)📝
src/clients/oauth.rs(+49 -55)📝
src/lib.rs(+11 -6)📄 Description
Description
This adds a configurable prefix URL for authentication.
I've also simplified the request methods in the base client. We don't really need
getif it's only used inendpoint_get. We can also extendpost_formtoauth_post, which also prepends the auth URL for convenience, just likeendpoint_get. Finally, I've renamedendpoint_getand similars toapi_getfor consistency and because it's clearer and much shorter.Motivation and Context
See #350
Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
I've modified the
endpoint_urltest, and added another one forauth_url.Is this change properly documented?
TODO
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
collectionyourepisodestype #441