mirror of
https://github.com/OMGeeky/twitch_data.git
synced 2025-12-28 07:07:49 +01:00
some more logs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "twitch_data"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -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