I’m trying to build a minimal CLI that would sync subscriptions between 2 or more lemmy accounts.
To do so, the CLI would need to:
- login to each account. For this I can use the login endpoint.
- get a list of subscriptions from each account. <- This is where I’m currently stuck.
- subscribe the accounts to the communities of other accounts. I think I can use the followCommunity endpoint.
My question is, how do I get a list of communities that a user follows?
Looks like it’s in the /site endpoint. The response has a
my_user
property that includes your followed communities in thefollows
property.