Module twitch_api2::helix::users::get_users_follows
source · [−]Available on crate feature
helix
only.Expand description
Gets information on follow relationships between two Twitch users.
get-users-follows
Request: GetUsersFollowsRequest
To use this endpoint, construct a GetUsersFollowsRequest
with the GetUsersFollowsRequest::builder()
method.
use twitch_api2::helix::users::get_users_follows;
let request = get_users_follows::GetUsersFollowsRequest::builder()
.to_id(Some("1234".into()))
.build();
Response: UsersFollows
Send the request to receive the response with HelixClient::req_get()
.
use twitch_api2::helix::{self, users::get_users_follows};
let request = get_users_follows::GetUsersFollowsRequest::builder()
.to_id(Some("1234".into()))
.build();
let response: Vec<get_users_follows::FollowRelationship> = client.req_get(request, &token).await?.data.follow_relationships;
You can also get the http::Request
with request.create_request(&token, &client_id)
and parse the http::Response
with GetUsersFollowsRequest::parse_response(None, &request.get_uri(), response)
Structs
Describes a follow relationship
Query Parameters for Get Users Follows
Return Values for Get Users Follows