summaryrefslogtreecommitdiff
path: root/src/helix/namespaces/clips.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-20 23:42:45 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-20 23:42:45 +0000
commit298806448db4a4e74306ec648bfc0e43a76c6bc3 (patch)
tree1cdd90df0d65a513ad94588dae7621b03a906b3e /src/helix/namespaces/clips.rs
parent2bae9a4e8d8b77f8a99df6829547a60f883632a3 (diff)
Split auth and unauth client and created ClientTrait
Diffstat (limited to 'src/helix/namespaces/clips.rs')
-rw-r--r--src/helix/namespaces/clips.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helix/namespaces/clips.rs b/src/helix/namespaces/clips.rs
index 083e5c4..19293cc 100644
--- a/src/helix/namespaces/clips.rs
+++ b/src/helix/namespaces/clips.rs
@@ -1,9 +1,10 @@
-use futures::future::Future;
use std::collections::BTreeMap;
use super::super::models::{DataContainer, PaginationContainer, User, Video, Clip};
use super::super::Client;
+use super::super::ClientTrait;
+use super::super::RatelimitKey;
const API_DOMAIN: &'static str = "api.twitch.tv";
-use super::super::Namespace;
+use super::Namespace;
pub struct Clips {}
type ClipsNamespace = Namespace<Clips>;
@@ -30,10 +31,9 @@ pub fn clip(client: Client, id: &str)
{
let url =
String::from("https://") +
- API_DOMAIN + "/helix/clips" + "?id=" + id;
+ client.domain() + "/helix/clips" + "?id=" + id;
let params = BTreeMap::new();
- let limit = client.default_ratelimit();
- ApiRequest::new(url, params, client, Method::GET, Some(limit))
+ ApiRequest::new(url, params, client, Method::GET, Some(RatelimitKey::Default))
}