Skip to content

Returns the members who voted for one survey option, with their public profiles.

Capped at 100 voters with no pagination. The option is identified by its slug in the path, so an unknown slug returns an empty list rather than an error.

Endpoint

  • Method: GET
  • Path: /feeds/{feed_id}/apps/survey-voters/{option_slug}
  • Edition: Core
  • Controller: ReactionController@getSurveyVoters
  • Route source: fluent-community/app/Http/Routes/api.php:80
  • Controller source: fluent-community/app/Http/Controllers/ReactionController.php

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 Survey Voters

GET
/feeds/{feed_id}/apps/survey-voters/{option_slug}

Returns the members who voted for one survey option, with their public profiles.

Controller: ReactionController@getSurveyVoters
Route source: fluent-community/app/Http/Routes/api.php:80

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

feed_id*

Feed ID extracted from the URL path.

Type
integer
Required
option_slug*

Option Slug extracted from the URL path.

Type
string
Required

Responses

Successful response

application/json
JSON
{
  
"voters": [
  
  
{
  
  
  
"created_at": "string",
  
  
  
"id": 0,
  
  
  
"object_id": "string",
  
  
  
"object_type": "string",
  
  
  
"parent_id": "string",
  
  
  
"type": "string",
  
  
  
"updated_at": "string",
  
  
  
"user_id": "string",
  
  
  
"xprofile": {
  
  
  
  
"avatar": "string",
  
  
  
  
"badge": "string",
  
  
  
  
"created_at": "string",
  
  
  
  
"display_name": "string",
  
  
  
  
"is_verified": 0,
  
  
  
  
"last_activity": "string",
  
  
  
  
"meta": {
  
  
  
  
  
"badge_slug": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"cover_photo": "string",
  
  
  
  
  
"headline": "string",
  
  
  
  
  
"short_description_rendered": "string",
  
  
  
  
  
"website": "string"
  
  
  
  
},
  
  
  
  
"permalink": "string",
  
  
  
  
"short_description": "string",
  
  
  
  
"status": "string",
  
  
  
  
"total_points": 0,
  
  
  
  
"user_id": 0,
  
  
  
  
"username": "string"
  
  
  
}
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation