HomePhabricator
Diffusion Comm b9c03cdb74fb

[lib] introduce fetchFollowedFarcasterChannels to neynar client class

Description

[lib] introduce fetchFollowedFarcasterChannels to neynar client class

Summary:
fetchFollowedFarcasterChannels is a function that given a user fid will retrieve all channels that the user follows on farcaster

Endpoint reference in neynar docs: https://docs.neynar.com/reference/user-channels

Linear task: https://linear.app/comm/issue/ENG-7465/add-the-user-channels-neynar-endpoint-to-our-neynar-api-client

Depends on D11675

Test Plan:
Passed in my personal fid and confirmed that the results I got from this function match exactly what is shown on warpcast

my channels I follow on warpcast:

Screenshot 2024-04-17 at 1.55.54 PM.png (1×470 px, 89 KB)

results of fetchFollowedFarcasterChannels (intentionally only logged the channel name to make it easy to view all the results):

Screenshot 2024-04-17 at 1.57.28 PM.png (158×1 px, 24 KB)

Reviewers: atul, inka, ashoat

Reviewed By: ashoat

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D11676

Details

Provenance
ginsuAuthored on Thu, Apr 18, 7:54 AM
Reviewer
ashoat
Differential Revision
D11676: [lib] introduce fetchFollowedFarcasterChannels to neynar client class
Parents
rCOMMfe5a6721ac17: [lib] refine fetchFriendFIDs function
Branches
Unknown
Tags
Unknown