HomePhabricator
Diffusion Comm 9ba6ca54dcf7

[lib] introduce fetchFarcasterChannelInfo to neynar client class

Description

[lib] introduce fetchFarcasterChannelInfo to neynar client class

Summary:
In the communities table we store the farcaster channel id. We need to use that id to fetch the channel info so we can display the channel name to the user. Neynar has an endpoint for this and this diff introduces the function that calls this neynar endpoint and fetches the channel info

Neynar docs: https://docs.neynar.com/reference/channel-details

Depends on D12027

Test Plan: Passed in several channel ids to this method and confirmed that I was getting the correct response back

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: ashoat, tomek

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

Details

Provenance
ginsuAuthored on Jun 5 2024, 11:23 PM
Reviewer
ashoat
Differential Revision
D12026: [lib] introduce fetchFarcasterChannelInfo to neynar client class
Parents
rCOMM974126afaf9e: [lib] update community reducer to handle new community action types
Branches
Unknown
Tags
Unknown