Skip to main content

drive_poll_token

Function drive_poll_token 

Source
pub fn drive_poll_token(
    client_id: &str,
    client_secret: &str,
    device_code: &str,
) -> Result<TokenResponse, &'static str>
Expand description

device_code でトークンを1回ポーリングする。authorization_pending の間は TokenResponse.error にコードが入る(成功時は access_token が埋まる)。