[−][src]Function battle_net_oauth::get_oauth_token
pub async fn get_oauth_token<'_, '_, '_>(
client_id: &'_ str,
client_secret: &'_ str,
region: &'_ str
) -> Result<OAuthToken, Box<dyn Error + Send + Sync>>
To retrieve a token, you need to provide your client_id and client_secret as well as a region (US, EU, APAC or CN)
let token = battle_net_oauth::get_oauth_token("client_id", "client_secret", "region");