[GH-ISSUE #314] Examples don't work #99

Closed
opened 2026-02-27 20:23:06 +03:00 by kerem · 1 comment
Owner

Originally created by @bunchofcellulose on GitHub (Apr 30, 2022).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/314

Examples don't work in the latest release
Examples in the examples folder are not up to date with the latest release. The first example (example/ureq/device.rs) itself is not working, how are new people supposed to use this lib? There is not much documentation in the docs either on how to get started.

Originally created by @bunchofcellulose on GitHub (Apr 30, 2022). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/314 **Examples don't work in the latest release** Examples in the examples folder are not up to date with the latest release. The first example (example/ureq/device.rs) itself is not working, how are new people supposed to use this lib? There is not much documentation in the docs either on how to get started.
kerem 2026-02-27 20:23:06 +03:00
Author
Owner

@marioortizmanero commented on GitHub (Apr 30, 2022):

Being a bit friendlier when opening issues like this helps getting it solved earlier. And you need to add more details; you ignored the template we have for bug reports (maybe templates don't work with your app?): what exactly went wrong, what did you try, etc. It wasn't too bad, but you know, we're volunteers after all :)

Also, not sure what exactly is wrong?

$ cargo r --example device --features=env-file,cli,client-ureq,ureq-rustls-tls --no-default-features
Opened https://accounts.spotify.com/authorize?scope=user-read-playback-state&response_type=code&client_id=e1dce60f1e274e20861ce5d96142a4d3&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fcallback&state=cZMNhhjhSA0dUYJK in your browser.
Please enter the URL you were redirected to:
http://localhost:8000/callback?code=abc&state=abc
Request: Ok([Device { id: Some("abc"), is_active: false, is_private_session: false, is_restricted: false, name: "btwiusedell", _type: Computer, volume_percent: Some(100) }])

Finally, we have a section for those getting started, check it out here. We accept criticism and suggestions, but of course, you need to tell us exactly what is wrong.

<!-- gh-comment-id:1114051131 --> @marioortizmanero commented on GitHub (Apr 30, 2022): Being a bit friendlier when opening issues like this helps getting it solved earlier. And you need to add more details; you ignored the template we have for bug reports (maybe templates don't work with your app?): what exactly went wrong, what did you try, etc. It wasn't too bad, but you know, we're volunteers after all :) Also, not sure what exactly is wrong? ``` $ cargo r --example device --features=env-file,cli,client-ureq,ureq-rustls-tls --no-default-features Opened https://accounts.spotify.com/authorize?scope=user-read-playback-state&response_type=code&client_id=e1dce60f1e274e20861ce5d96142a4d3&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fcallback&state=cZMNhhjhSA0dUYJK in your browser. Please enter the URL you were redirected to: http://localhost:8000/callback?code=abc&state=abc Request: Ok([Device { id: Some("abc"), is_active: false, is_private_session: false, is_restricted: false, name: "btwiusedell", _type: Computer, volume_percent: Some(100) }]) ``` Finally, we have a section for those [getting started, check it out here](https://docs.rs/rspotify/0.11.5/rspotify/#getting-started). We accept criticism and suggestions, but of course, you need to tell us exactly what is wrong.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#99
No description provided.