Skip to content

Following since date #3005

Closed Answered by apa420
AvramSilb asked this question in Q&A
Discussion options

You must be logged in to vote

https://dev.twitch.tv/docs/api/reference#get-users-follows

void Helix::getUserFollow(
QString userId, QString targetId,
ResultCallback<bool, HelixUsersFollowsRecord> successCallback,
HelixFailureCallback failureCallback)
{
this->fetchUsersFollows(
std::move(userId), std::move(targetId),
[successCallback](const auto &response) {
if (response.data.empty())
{
successCallback(false, HelixUsersFollowsRecord());
return;
}
successCallback(true, response.data[0]);
},
std::move(failureCallback));
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zneix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants