Skip to content

Create share

Diego edited this page May 20, 2013 · 9 revisions

POST /api/movements/:movement_id/shares(.:format)

Creates a new share for the requested action page, user and type of share

Parameters
movement_id
Mandatory
Movement ID for which we want to create the share
page_id
Mandatory
Action Page ID for which we want to create the share
user_id
Mandatory
User ID for which we want to create the share
share_type
Mandatory
One of the following: 'facebook', 'twitter' or 'email'

Response

Status Code

201 if Successful
400 If share data is invalid

Content

N/A

Example Request

POST /api/movements/test-movement/shares.json
Content-Type: application/x-www-form-urlencoded

page_id=1234&share_type=facebook&user_id=100

Example Response

200 (OK)

back