(&self)
| 134 | |
| 135 | #[tracing::instrument(level = "debug", skip(self))] |
| 136 | async fn get_oauth_client(&self) -> OAuth2Client { |
| 137 | let config = self.config.lock().await; |
| 138 | get_oauth_client(OAuthClientArgs { |
| 139 | auth_url: "https://accounts.spotify.com/authorize".to_string(), |
| 140 | token_url: "https://accounts.spotify.com/api/token".to_string(), |
| 141 | redirect_url: config.redirect_uri.to_string(), |
| 142 | client_id: config.client_id.clone().unwrap(), |
| 143 | client_secret: config.client_secret.clone().unwrap_or_default(), |
| 144 | }) |
| 145 | } |
| 146 | |
| 147 | #[tracing::instrument(level = "debug", skip(self))] |
| 148 | async fn create_api_client(&self) { |
no test coverage detected