Skip to content

Commit fb13b9a

Browse files
committed
update example
1 parent a965559 commit fb13b9a

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/helix/users/get_users.rs

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,22 @@ fn test_request() {
107107
// FIXME: This is not valid anymore. Twitch....
108108
let data = br#"
109109
{
110-
"data": [{
111-
"id": "44322889",
112-
"login": "dallas",
113-
"display_name": "dallas",
114-
"type": "staff",
115-
"broadcaster_type": "",
116-
"description": "Just a gamer playing games and chatting. :)",
117-
"profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/dallas-profile_image-1a2c906ee2c35f12-300x300.png",
118-
"offline_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/dallas-channel_offline_image-1a2c906ee2c35f12-1920x1080.png",
119-
"view_count": 191836881,
120-
"email": "login@provider.com",
121-
"created_at": "2013-06-03T19:12:02.580593Z"
122-
}]
123-
}
110+
"data": [
111+
{
112+
"id": "141981764",
113+
"login": "twitchdev",
114+
"display_name": "TwitchDev",
115+
"type": "",
116+
"broadcaster_type": "partner",
117+
"description": "Supporting third-party developers building Twitch integrations from chatbots to game integrations.",
118+
"profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/8a6381c7-d0c0-4576-b179-38bd5ce1d6af-profile_image-300x300.png",
119+
"offline_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/3f13ab61-ec78-4fe6-8481-8682cb3b0ac2-channel_offline_image-1920x1080.png",
120+
"view_count": 5980557,
121+
"email": "not-real@email.com",
122+
"created_at": "2016-12-14T20:32:28.894263Z"
123+
}
124+
]
125+
}
124126
"#
125127
.to_vec();
126128

0 commit comments

Comments
 (0)