0.1.10
This commit is contained in:
parent
a6732847be
commit
02509466a6
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1036,7 +1036,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "soundcloud"
|
name = "soundcloud"
|
||||||
version = "0.1.8"
|
version = "0.1.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"hyper-util",
|
"hyper-util",
|
||||||
"regex",
|
"regex",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "soundcloud"
|
name = "soundcloud"
|
||||||
version = "0.1.9"
|
version = "0.1.10"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A small rust crate for fetching data from soundcloud without developer account"
|
description = "A small rust crate for fetching data from soundcloud without developer account"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
@ -30,7 +30,7 @@ pub async fn get_likes(
|
|||||||
user_id: u64,
|
user_id: u64,
|
||||||
client_id: String,
|
client_id: String,
|
||||||
app_version: String,
|
app_version: String,
|
||||||
) -> Result<Option<String>, Box<dyn Error>> {
|
) -> Result<Option<String>, Box<dyn Error + Send + Sync>> {
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
|
|
||||||
let resp = client.get(format!("https://{}/users/{}/likes?client_id={}&limit=10&offset=0&linked_partitioning=1&app_version={}&app_locale=en", SOUNDCLOUD_API_DOMAIN, user_id, client_id, app_version) )
|
let resp = client.get(format!("https://{}/users/{}/likes?client_id={}&limit=10&offset=0&linked_partitioning=1&app_version={}&app_locale=en", SOUNDCLOUD_API_DOMAIN, user_id, client_id, app_version) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user