Update rust #1
+2
-10
@@ -77,11 +77,7 @@ pub mod get_metadata_queue {
|
|||||||
let endpoint = String::from("api/v2/song/metadata/queue");
|
let endpoint = String::from("api/v2/song/metadata/queue");
|
||||||
let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri);
|
let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri);
|
||||||
let (key, header) = super::auth_header(app).await;
|
let (key, header) = super::auth_header(app).await;
|
||||||
client
|
client.get(api_url).header(key, header).send().await
|
||||||
.get(api_url)
|
|
||||||
.header(key, header)
|
|
||||||
.send()
|
|
||||||
.await
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod response {
|
pub mod response {
|
||||||
@@ -129,11 +125,7 @@ pub mod get_coverart_queue {
|
|||||||
let endpoint = String::from("api/v2/coverart/queue");
|
let endpoint = String::from("api/v2/coverart/queue");
|
||||||
let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri);
|
let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri);
|
||||||
let (key, header) = super::auth_header(app).await;
|
let (key, header) = super::auth_header(app).await;
|
||||||
client
|
client.get(api_url).header(key, header).send().await
|
||||||
.get(api_url)
|
|
||||||
.header(key, header)
|
|
||||||
.send()
|
|
||||||
.await
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_data(
|
pub async fn get_data(
|
||||||
|
|||||||
Reference in New Issue
Block a user