SDKsiOS
Retrieve sent friend requests
Retrieve friend requests sent by the current iOS user with pagination.
GetFriendApplicationListAsApplicantReq *req = [GetFriendApplicationListAsApplicantReq new];
req.offset = 0;
req.count = 20;
[[OIMManager manager] getFriendApplicationListAsApplicantWithReq:req
onSuccess:^(NSArray<OIMFriendApplication *> *items) {
[requestStore replaceSent:items];
}
onFailure:nil];offset starts at 0, and count is the page size. The success callback returns the current page snapshot. Merge records by fromUserID:toUserID. The query does not trigger a friend-request delegate.
Was this page helpful?