[PR #42] [MERGED] get_token processing can be done in two parts #201

Closed
opened 2026-02-27 20:23:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ramsayleung/rspotify/pull/42
Author: @braincow
Created: 5/29/2019
Status: Merged
Merged: 5/30/2019
Merged by: @ramsayleung

Base: masterHead: two_part_token_request


📝 Commits (2)

  • 0492408 get_token processing can be done in two parts
  • 4d1bec7 Merge branch 'master' into two_part_token_request

📊 Changes

1 file changed (+19 additions, -13 deletions)

View changed files

📝 src/spotify/util.rs (+19 -13)

📄 Description

This patch separates get_token functionality into two different functions while still maintaining legacy compatibility where user is queried on the command line for return URL address.

Separating the behavior allows handling request and verification of received token in code. For example: I am working on a small app that spawns a simple http server to localhost to wait for users browser to return back from Spotify website. Thus user never needs to enter the values themselves to console.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ramsayleung/rspotify/pull/42 **Author:** [@braincow](https://github.com/braincow) **Created:** 5/29/2019 **Status:** ✅ Merged **Merged:** 5/30/2019 **Merged by:** [@ramsayleung](https://github.com/ramsayleung) **Base:** `master` ← **Head:** `two_part_token_request` --- ### 📝 Commits (2) - [`0492408`](https://github.com/ramsayleung/rspotify/commit/04924084789ca35d3f535e4e13cff115d4bd53c0) get_token processing can be done in two parts - [`4d1bec7`](https://github.com/ramsayleung/rspotify/commit/4d1bec718a06bb4a288b289fb3ce675db6765d1d) Merge branch 'master' into two_part_token_request ### 📊 Changes **1 file changed** (+19 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/spotify/util.rs` (+19 -13) </details> ### 📄 Description This patch separates get_token functionality into two different functions while still maintaining legacy compatibility where user is queried on the command line for return URL address. Separating the behavior allows handling request and verification of received token in code. For example: I am working on a small app that spawns a simple http server to localhost to wait for users browser to return back from Spotify website. Thus user never needs to enter the values themselves to console. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:23:45 +03:00
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#201
No description provided.