rspotify
rspotify copied to clipboard
Update the examples
So many of the examples provided are broken now. Please update, there are so many breaking changes that are not addressed.
I second this. I'm trying to use the pagination_sync example and it's broken.
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-features
Also can you give a list of the other examples you're finding are broken?
Just tested "auth_code".
It uses the wrong scope. "user-read-currently-playing" would be correct and works fine.
I don't fully understand the description:
"auth_code" uses the wrong scope, "user-read-currently-playing" would be correct and works fine.
The auth_code
example is using exactly the user-read-currently-playing
scope:
https://github.com/ramsayleung/rspotify/blob/eb1260c24a74e8d3ce97cd3a6222da7b1d1989c3/examples/auth_code.rs#L36
Yes, sorry, you are right. The code I refer to is from the comment above it (which I used for the custom callback url):
Sorry for the confusion.