Page MenuHomePhabricator

[lib] introduce fetchFarcasterChannelInfo to neynar client class
ClosedPublic

Authored by ginsu on May 13 2024, 11:41 PM.
Tags
None
Referenced Files
F3495487: D12026.id41021.diff
Thu, Dec 19, 8:46 AM
F3495486: D12026.id40149.diff
Thu, Dec 19, 8:46 AM
F3495485: D12026.id41011.diff
Thu, Dec 19, 8:46 AM
F3495461: D12026.id.diff
Thu, Dec 19, 8:45 AM
F3495448: D12026.diff
Thu, Dec 19, 8:45 AM
Unknown Object (File)
Tue, Dec 17, 10:10 PM
Unknown Object (File)
Fri, Dec 6, 7:40 PM
Unknown Object (File)
Thu, Dec 5, 9:14 PM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu retitled this revision from [lb] introduce fetchFarcasterChannelInfo to neynar client class to [lib] introduce fetchFarcasterChannelInfo to neynar client class.May 13 2024, 11:46 PM
ginsu added a reviewer: ashoat.
ginsu edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.May 14 2024, 9:38 AM