Skip to content

feat: return followings from address#205

Draft
wa0x6e wants to merge 5 commits into
masterfrom
feat-197-api-to-resolve-following-list
Draft

feat: return followings from address#205
wa0x6e wants to merge 5 commits into
masterfrom
feat-197-api-to-resolve-following-list

Conversation

@wa0x6e

@wa0x6e wa0x6e commented Apr 3, 2024

Copy link
Copy Markdown
Contributor

Close #197

Add followings API to return addresses followed by a given address.

Will return following from:

  • Lens
  • Farcaster
  • EFP

TODO

  • Add cache

🛠️ Tests

Run

curl --location 'http://localhost:3008' \
--header 'Content-Type: application/json' \
--data '{
    "method": "following",
    "params": "0x70d9b2084d24823789073d3732a327b2c18a7e6f"
}'

@bonustrack

Copy link
Copy Markdown
Member

We dont need following for multiple addresses, we will always specify 1 address to get list of following.

@wa0x6e

wa0x6e commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

Already the case, using an array just to conform to the rest of the API, array length must be 1

@bonustrack

Copy link
Copy Markdown
Member

Why we need to conform to the rest of the API? This is different method of the API we dont need use same argument everywhere

Comment thread src/following/index.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: API to resolve following list

2 participants