mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-25 23:45:52 +03:00
[GH-ISSUE #479] Update the examples #159
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#159
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 @0xbrayo on GitHub (Apr 24, 2024).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/479
So many of the examples provided are broken now. Please update, there are so many breaking changes that are not addressed.
@masakk1 commented on GitHub (Jun 17, 2024):
I second this.
I'm trying to use the pagination_sync example and it's broken.
@MaximoMachado commented on GitHub (Jun 19, 2024):
What is the error you're encountering with pagination_sync? I ran it myself locally and it worked as expected. Give this command a try:
cargo run --example pagination_sync --features="env-file cli client-ureq ureq-rustls-tls" --no-default-featuresAlso can you give a list of the other examples you're finding are broken?
@Jonsen94 commented on GitHub (Jul 24, 2024):
Just tested "auth_code".
It uses the wrong scope. "user-read-currently-playing" would be correct and works fine.
@ramsayleung commented on GitHub (Jul 26, 2024):
I don't fully understand the description:
The
auth_codeexample is using exactly theuser-read-currently-playingscope:github.com/ramsayleung/rspotify@eb1260c24a/examples/auth_code.rs (L36)@Jonsen94 commented on GitHub (Jul 26, 2024):
Yes, sorry, you are right. The code I refer to is from the comment above it (which I used for the custom callback url):
// Same for RSPOTIFY_REDIRECT_URI. You can also set it explictly:
//
//
// let oauth = OAuth { // redirect_uri: "http://localhost:8888/callback".to_string(), // scopes: scopes!("user-read-recently-played"), // ..Default::default(), // }; //Sorry for the confusion.