Replies: 5 comments 3 replies
-
|
I created my concept https://github.com/ShayBoxs-Forks/rspotify/commit/362b1ebe8e69712b9f2994f8bd95a2bae199e63a?diff=unified |
Beta Was this translation helpful? Give feedback.
-
|
Great point! It's much better to ask the developer to copy/paste the URL into the terminal. You could make a PR to add this |
Beta Was this translation helpful? Give feedback.
-
|
See also |
Beta Was this translation helpful? Give feedback.
-
|
cool, I am migrating this feature to RSpotify. |
Beta Was this translation helpful? Give feedback.
-
|
this feature has been implemented in this PR: #513 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why copy/paste the URL or Code into the terminal, why not bind a simple tcp listener for the callback url?
Add a parameter
addr: Option<SocketAddr>toprompt_for_token(&url, "127.0.0.1:8888");If provided, bind a listener, here's an example using just std::net and possibly std::io
If it fails to bind or return a valid code within X requests, fallback to stdin input, or alternatively, create duplicate functions for this purpose and leave the existing ones as-is.
Beta Was this translation helpful? Give feedback.
All reactions