Get Share Counts - PurposeOpen/Platform GitHub Wiki

GET /api/:locale/movements/:movement_id/action_pages/:id/share_counts(.:format)

Retrieves the shares count for the requested action page

Parameters
movement_idMandatory Movement ID for which we want to retrieve the share counts
localeMandatory Action Page localized version
idMandatory Action Page Id for which we want to retrieve the share counts

Response

Status Code

200 if Successful 400 If Action Page ID not provided

Content

Field Description
Share counts See Share Counts

Example Request

GET /api/en/movements/test-movement/action_pages/909/share_counts.json

Example Response

200 (OK) Content-Type: application/json

{"facebook":0,
"twitter":0,
"email":0
}

back