mirror of
https://github.com/OMGeeky/twitch_data.git
synced 2025-12-31 16:40:04 +01:00
some more logs
This commit is contained in:
@@ -304,11 +304,14 @@ impl<'a> TwitchClient<'a> {
|
||||
.build()?;
|
||||
let res = check_backoff_twitch_with_client(request, &self.reqwest_client).await?;
|
||||
// let res = self.reqwest_client.execute(request).await?;
|
||||
|
||||
trace!("get_video_token_and_signature: Got response: {:?}", res);
|
||||
let j = res.text().await?;
|
||||
|
||||
debug!("get_video_token_and_signature: Response body: {}", j);
|
||||
let json: TwitchVideoAccessTokenResponse = serde_json::from_str(&j)?;
|
||||
|
||||
trace!(
|
||||
"get_video_token_and_signature: Got video token and signature: {:?}",
|
||||
json
|
||||
);
|
||||
Ok((
|
||||
json.data.videoPlaybackAccessToken.value,
|
||||
json.data.videoPlaybackAccessToken.signature,
|
||||
|
||||
Reference in New Issue
Block a user