Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
rish
@rish
GM! took us a bit longer than expected but thanks to @shreyas-chorge, we now have an sdk for all farcaster read and write operations: github.com/neynarxyz/nodejs-sdk @pixel wrote some great guides on how you can get started! docs.neynar.com will keep adding new functionality, feedback is useful 🙏🏽 🪐
7 replies
18 recasts
66 reactions
JB Rubinovitz ⌐◨-◨
@rubinovitz
This was great btw. Re-wrote code using the api endpoints that previously took 1.5 days to write in 3 hours. Types are wonderful. Only stumbling block was that there are types in V1 with the same names as types in V2 and that was confusing.
3 replies
0 recast
1 reaction
Shreyas
@shreyas-chorge
If a single module have 2 types of same name, consider doing something like this ``` import { User as IUserV1 } from "@neynar/nodejs-sdk/build/neynar-api/v1"; import { User as IUserV2 } from "@neynar/nodejs-sdk/build/neynar-api/v2"; ```
1 reply
0 recast
0 reaction
rish
@rish
great to hear JB and thanks for the feedback! cc @manan and @shreyas-chorge on naming @rubinovitz we have helper functions in the sdk to convert v1 objects into v2 just in case you need that
0 reply
0 recast
1 reaction
Shreyas
@shreyas-chorge
I wonder what's confusing about it 🤔.? v1 and v2 types are exported from `/neynar-api/v1` and `/neynar-api/v2` respectively.
0 reply
0 recast
0 reaction