[][src]Function battle_net_oauth::get_oauth_token

pub fn get_oauth_token(
    client_id: &str,
    client_secret: &str
) -> Result<OAuthToken, Error>

To retrieve a token, you need to provide your client_id and client_secret

let token = battle_net_oauth::get_oauth_token("client_id", "client_secret");