Bonfire.Me.API.GraphQLMasto.Adapter (Bonfire v1.0.1-social-alpha.28)
View SourceAccount/User related API endpoints for Mastodon-compatible client apps.
This adapter handles:
- User profile queries (GET /api/v1/accounts/:id, /api/v1/accounts/verify_credentials)
- Follow/unfollow actions
- Followers/following lists with batch-loaded stats
- Account relationships
User → Mastodon Account transformation is delegated to Mappers.Account.
Summary
Functions
Accept/authorize a follow request (POST /api/v1/follow_requests/:account_id/authorize)
Follow an account
List incoming follow requests (GET /api/v1/follow_requests)
List outgoing follow requests (GET /api/v1/follow_requests/outgoing)
List followers of an account
List accounts that an account is following
Get user preferences
Lookup an account by webfinger address. Mastodon API: GET /api/v1/accounts/lookup?acct=username or acct=username@domain
Get the current user's profile (verify_credentials)
Reject a follow request (POST /api/v1/follow_requests/:account_id/reject)
Get relationships between the current user and given accounts. Mastodon API: GET /api/v1/accounts/relationships?id[]=1&id[]=2
Search for accounts by username or display name. Mastodon API: GET /api/v1/accounts/search?q=query
Get suggested accounts to follow.
Unfollow an account
Update the authenticated user's profile. Mastodon API: PATCH /api/v1/accounts/update_credentials
Get a user profile by filter (id, username, etc)
Functions
Accept/authorize a follow request (POST /api/v1/follow_requests/:account_id/authorize)
Follow an account
List incoming follow requests (GET /api/v1/follow_requests)
List outgoing follow requests (GET /api/v1/follow_requests/outgoing)
List followers of an account
List accounts that an account is following
Get user preferences
Lookup an account by webfinger address. Mastodon API: GET /api/v1/accounts/lookup?acct=username or acct=username@domain
Get the current user's profile (verify_credentials)
Reject a follow request (POST /api/v1/follow_requests/:account_id/reject)
Get relationships between the current user and given accounts. Mastodon API: GET /api/v1/accounts/relationships?id[]=1&id[]=2
Search for accounts by username or display name. Mastodon API: GET /api/v1/accounts/search?q=query
Get suggested accounts to follow.
Mastodon API v2: GET /api/v2/suggestions
Returns accounts from the curated "Suggested Profiles" circle maintained by admins/mods. Falls back to discoverable users from the local instance if the circle is empty.
Parameters
limit- Maximum number of suggestions to return (default: 40, max: 80)
Unfollow an account
Update the authenticated user's profile. Mastodon API: PATCH /api/v1/accounts/update_credentials
Get a user profile by filter (id, username, etc)