Skip to content
Discussion options

You must be logged in to vote

As of 4.2.4, Endpoint.Friendship.followed and Endpoint.Friendship.following allow for an optional parameter (default to nil — reverting to the old no query behavior) to query for specific names/usernames.

// 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()

Replies: 2 comments

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Answer selected by sbertix
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
Converted from issue

This discussion was converted from issue #111 on December 13, 2020 22:17.