rspotify icon indicating copy to clipboard operation
rspotify copied to clipboard

Update the examples

Open brayo-pip opened this issue 10 months ago • 5 comments

So many of the examples provided are broken now. Please update, there are so many breaking changes that are not addressed.

brayo-pip avatar Apr 24 '24 08:04 brayo-pip

I second this. I'm trying to use the pagination_sync example and it's broken.

masakk1 avatar Jun 17 '24 19:06 masakk1

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?

MaximoMachado avatar Jun 19 '24 09:06 MaximoMachado

Just tested "auth_code".

It uses the wrong scope. "user-read-currently-playing" would be correct and works fine.

Jonsen94 avatar Jul 24 '24 20:07 Jonsen94

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

ramsayleung avatar Jul 26 '24 05:07 ramsayleung