Content
@
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
20 recasts
69 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
JB Rubinovitz ⌐◨-◨
@rubinovitz
Yeah I ended up doing that it just wasn’t obvious when implementing the code that there were types with the same name that were different
0 reply
0 recast
0 reaction