summaryrefslogtreecommitdiff
path: root/src/helix/namespaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/helix/namespaces')
-rw-r--r--src/helix/namespaces/auth.rs2
-rw-r--r--src/helix/namespaces/clips.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/helix/namespaces/auth.rs b/src/helix/namespaces/auth.rs
index 8ad7956..5efc0fe 100644
--- a/src/helix/namespaces/auth.rs
+++ b/src/helix/namespaces/auth.rs
@@ -39,5 +39,5 @@ pub fn client_credentials(client: Client, secret: &str)
params.insert("grant_type".to_owned(), "client_credentials".to_owned());
params.insert("scope".to_owned(), "".to_owned());
- ApiRequest::new(url, params, client, Method::POST)
+ ApiRequest::new(url, params, client, Method::POST, None)
}
diff --git a/src/helix/namespaces/clips.rs b/src/helix/namespaces/clips.rs
index ac820e8..083e5c4 100644
--- a/src/helix/namespaces/clips.rs
+++ b/src/helix/namespaces/clips.rs
@@ -33,6 +33,7 @@ pub fn clip(client: Client, id: &str)
API_DOMAIN + "/helix/clips" + "?id=" + id;
let params = BTreeMap::new();
+ let limit = client.default_ratelimit();
- ApiRequest::new(url, params, client, Method::GET)
+ ApiRequest::new(url, params, client, Method::GET, Some(limit))
}