From 678e3d3f28cb8594204dc5e2b7597ae66a4582c7 Mon Sep 17 00:00:00 2001 From: David Blajda Date: Thu, 27 Dec 2018 22:03:23 +0000 Subject: Use Id types for endpoints and implement kraken headers --- src/namespace/auth.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/namespace') 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()); -- cgit v1.2.3