diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-27 22:03:23 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-27 22:03:23 +0000 |
commit | 678e3d3f28cb8594204dc5e2b7597ae66a4582c7 (patch) | |
tree | 55b563cfdc09dab8f18c1f4d688ebf0c2187985c /src/namespace | |
parent | cb1b144e48ee357a76f551433d4886f092d259c8 (diff) |
Use Id types for endpoints and implement kraken headers
Diffstat (limited to 'src/namespace')
-rw-r--r-- | src/namespace/auth.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/namespace/auth.rs b/src/namespace/auth.rs index 577aa92..c7a0c67 100644 --- a/src/namespace/auth.rs +++ b/src/namespace/auth.rs @@ -1,7 +1,6 @@ use std::collections::BTreeMap; use crate::models::Credentials; use crate::client::Client; -const ID_DOMAIN: &'static str = "id.twitch.tv"; use crate::client::{ClientTrait, ApiRequest}; use reqwest::Method; use std::marker::PhantomData; @@ -43,7 +42,7 @@ pub fn client_credentials(client: Client, secret: &str) let url = String::from("https://") + - ID_DOMAIN + "/oauth2/token"; + client.auth_domain() + "/oauth2/token"; let mut params = BTreeMap::new(); params.insert("client_id", client.id()); |