Content pfp
Content
@
https://warpcast.com/~/channel/fabric
0 reply
0 recast
0 reaction

Tiago pfp
Tiago
@alvesjtiago.eth
is there an easy to use subscription management platform (or even an sdk with webhooks) to manage subscriptions for an app via @hypersub / @fabric? would love to integrate it for /fiids launch but couldn't find an easy way to support it.
2 replies
3 recasts
22 reactions

Jonny Mack pfp
Jonny Mack
@nonlinear.eth
would love to see someone build something like that. in the meantime: https://github.com/withfabricxyz/protocol-sdks https://docs.neynar.com/reference/subscribers-1
1 reply
1 recast
13 reactions

Tiago pfp
Tiago
@alvesjtiago.eth
thank you, the @neynar endpoint could definitely help. however i'm not sure if I understand how to calculate the end of a subscription through the "subscribed-to" endpoint since it only provides "period_duration_seconds" and "tokens_per_period" (it doesn't seem to include due date or creation time).
1 reply
0 recast
0 reaction

Jonny Mack pfp
Jonny Mack
@nonlinear.eth
cc @rish @manan
1 reply
0 recast
0 reaction

rish pfp
rish
@rish
@kevinoconnell where did we include the expiring field?
1 reply
0 recast
0 reaction

kevin pfp
kevin
@kevinoconnell
@alvesjtiago.eth if you look at /subscribers https://docs.neynar.com/reference/subscribers-1 expires_at is in subscribed_to, which gives a date of when the subscription expires
1 reply
0 recast
0 reaction

Tiago pfp
Tiago
@alvesjtiago.eth
thanks kevin. I think I'm failing to understand the difference between subscribers and subscribed_to. for a subscription based model, shouldn't I be checking if the fid is subscribed to? eg. the "subscribers" endpoint returns an empty array for my fid but a /memes subscription on the "subscribed_to" endpoint.
2 replies
0 recast
0 reaction

kevin pfp
kevin
@kevinoconnell
subscribers = fids that are subscribed to a given fid subscribed_to = what fids a given fid is subscribed to 2 other notes: 1.) these only return subscribers that have a farcaster, we ignore non farcaster subscribers 2.) if the wallet you made a fabric contract with isn't verified on farcaster, it won't show up
1 reply
0 recast
0 reaction

Tiago pfp
Tiago
@alvesjtiago.eth
I think I got it now. the contract on fabric would need to be made with a verified address on farcaster (eg. @fiids but there's no account associated with that account) and then I could get all subscribed users to that contract, filter by the fid of the subscribing user and check if it's valid.
1 reply
0 recast
0 reaction

Tiago pfp
Tiago
@alvesjtiago.eth
my expectation was that it would be the reverse: I would be able pass an fid and a contract and it would tell me the status of that user's subscription (hence why I was using the subscribed_to).
1 reply
0 recast
0 reaction

rish pfp
rish
@rish
we can def add an attribute that tells the status of the subscription in both APIs
1 reply
0 recast
0 reaction

Tiago pfp
Tiago
@alvesjtiago.eth
really appreciate it. I think being aware that the deployed contract needs to be associated with a farcaster account was the missing link for me so happy to use the "subscribes" one meanwhile. you're all awesome as always and sorry about the long thread. hope it's helpful for more people.
1 reply
0 recast
0 reaction