-
In swiftagram, you have endpoint to fetch user follower/following list page by page. But I wonder how can I search follower/following users? Is there an endpoint for it? For Example: v1/user/friendship/follower?q=abc |
Beta Was this translation helpful? Give feedback.
Answered by
sbertix
Dec 13, 2020
Replies: 2 comments
This comment has been hidden.
This comment has been hidden.
-
As of // This works exactly like writing "instagram" on the search
// bar on the followers section of the logged in user.
Endpoint.Friendship.followed(by: secret.id, matching: "instagram")
.unlocking(with: secret)
.task(maxLength: 1,
onComplete: { _ in },
onChange: { _ in
// Do something here.
})
.resume() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sbertix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of
4.2.4
,Endpoint.Friendship.followed
andEndpoint.Friendship.following
allow for an optional parameter (default tonil
— reverting to the old no query behavior) to query for specific names/usernames.