Open MagicAndre1981 opened 10 months ago
I recommend reading through the ATProtocol Lexicon lists to see if it exists there first. Then, cross-section that with the list in the README.
In this case, that information should be available in getList, which is not implemented here yet.
In this case, that information should be available in getList, which is not implemented here yet.
ok, thanks.
https://github.com/drasticactions/FishyFlip/commit/27bca12f168b95affe98a061562ca8eb6bc475a3
I've updated the README to update the supported/unsupported endpoints (I had a few I did implement and didn't add back there). I also wrote a little tool to help keep track when the protocol updates to know if something gets added or removed to keep that list in check: https://github.com/drasticactions/FishyFlip/tree/main/tools/LexiconTools
I can get to it when I have a chance, but it shouldn't be too hard to add that one should you or anyone else want to. It should just be adding a new endpoint and record response for it, and the endpoint to the Graph class, basically replicating what the other ones do.
@MagicAndre1981 I just released a new version with the rest of the Graph
APIs, including getList
which should get you what you want.
// This endpoint requires authorization. If you don't have it, it will throw an auth error.
// Get the List ATURI.
var repo = ATUri.Create(@"at://did:plc:yhgc5rlqhoezrx6fbawajxlh/app.bsky.graph.list/3kiwyqwydde2x");
// Gets information about the list, including who is following it.
var lists = (await protocol.Graph.GetListAsync(repo)).HandleResult();
// Gets a sample of posts from the list.
var feed = (await protocol.Feed.GetListFeedAsync(repo)).HandleResult();
Let me know if this works for you.
thanks, 1.5.25 works and with
var profile = (await protocol.Identity.ResolveHandleAsync(ATHandle.Create("HANDLENAME")!)).HandleResult();
var lists = (await protocol.Graph.GetListsAsync(profile.Did)).HandleResult();
I'm able to get the lists. In 1.4.19 it always crashed (JsonException, InvalidOperationException). I can see the purpose (app.bsky.graph.defs#curatelist
) that is great.
But now I need to get the number of users added to a specific list. I've expected a Collection Property with the members where I can call Count. Do I need to run an extra call to fetch the members of the list?
Do I need to run an extra call to fetch the members of the list?
looks so, we need to do an extra call 'list-members'
Ok, there seems to be a getListCount function, but how can we call this from .NET?
Going by the commits, it was implemented as part of an update to the AppView so I have not implemented it yet.
@MagicAndre1981 So I checked in the BSky Dev Discord and that code isn't accessible by any exposed xrpc endpoint. So I can't implement access to it, it's internal.
In general, I would look in the lexicons first for functions that can be accessible by clients like this. If it's not there, then it most likely isn't something that we can call.
ok, thanks for looking into this.
I would like to know the number of users who are on my own created list. I searched a bit in the code but can't find it. Is this implemented?