Returns the spaces a member actively belongs to, each with its member count.
Secret spaces are only included when the caller is the profile owner or a community moderator. Spaces with hide_members_count report zero unless the caller may view their members.
Endpoint
Method:
GETPath:
/profile/{username}/spacesEdition: Core
Controller:
ProfileController@getSpacesRoute source:
fluent-community/app/Http/Routes/api.php:90Controller source:
fluent-community/app/Http/Controllers/ProfileController.phpGated by the
user_space_visibilityprivacy setting; failure comes back carryingpermission_failed.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET List Profile Spaces
Returns the spaces a member actively belongs to, each with its member count.
Controller: ProfileController@getSpaces
Route source: fluent-community/app/Http/Routes/api.php:90
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Username extracted from the URL path.
Responses
Successful response