POST selfie/posts/:post id/unlike
(Difference between revisions)
Line 1: | Line 1: | ||
− | + | == Description == | |
+ | |||
+ | Decrements the like counter of a post. | ||
+ | |||
+ | == Resource URL == | ||
+ | |||
+ | POST https://api.socialidnow.com/v1/marketing/selfie/posts/:post_id/unlike | ||
+ | |||
+ | == Parameters == | ||
+ | |||
+ | === URL Parameters === | ||
+ | |||
+ | {| | ||
+ | ! align="left" width="200px" | post_id | ||
+ | | width="200px" | required | ||
+ | | post identifier. | ||
+ | |} | ||
+ | |||
+ | === JSON Parameters === | ||
+ | |||
+ | {| | ||
+ | ! align="left" width="200px" | user_id | ||
+ | | width="200px" | required | ||
+ | | identifier of the user who performed the like action. | ||
+ | |} | ||
+ | |||
+ | == Authentication == | ||
+ | |||
+ | This API does not require authentication. | ||
+ | |||
+ | == Response == | ||
+ | |||
+ | === Response Status === | ||
+ | |||
+ | {| | ||
+ | ! align="left" width="200px" | ok (200) | ||
+ | | The like was removed successfully. | ||
+ | |- | ||
+ | ! align="left" width="200px" | bad_request (400) | ||
+ | | Some required parameter was not informed. | ||
+ | |- | ||
+ | ! align="left" width="200px" | not_found (404) | ||
+ | | Like not found. | ||
+ | |- | ||
+ | ! align="left" width="200px" | internal_server_error (500) | ||
+ | | An unknown error happened. | ||
+ | |} | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | === Request === | ||
+ | |||
+ | Performs the unlike of post "123" by the user identified by the IP "50.97.87.253". | ||
+ | |||
+ | curl -iX POST 'https://api.socialidnow.com/v1/marketing/selfie/posts/123/unlike' \ | ||
+ | -d '{"user_id":"50.97.87.253"}' \ | ||
+ | -H 'Content-type:application/json' | ||
+ | |||
+ | === Response === | ||
+ | |||
+ | ==== Response Headers ==== | ||
+ | |||
+ | HTTP/1.1 200 Ok | ||
+ | Status: 200 |
Revision as of 18:38, 3 November 2014
Contents |
Description
Decrements the like counter of a post.
Resource URL
POST https://api.socialidnow.com/v1/marketing/selfie/posts/:post_id/unlike
Parameters
URL Parameters
post_id | required | post identifier. |
---|
JSON Parameters
user_id | required | identifier of the user who performed the like action. |
---|
Authentication
This API does not require authentication.
Response
Response Status
ok (200) | The like was removed successfully. |
---|---|
bad_request (400) | Some required parameter was not informed. |
not_found (404) | Like not found. |
internal_server_error (500) | An unknown error happened. |
Examples
Request
Performs the unlike of post "123" by the user identified by the IP "50.97.87.253".
curl -iX POST 'https://api.socialidnow.com/v1/marketing/selfie/posts/123/unlike' \ -d '{"user_id":"50.97.87.253"}' \ -H 'Content-type:application/json'
Response
Response Headers
HTTP/1.1 200 Ok Status: 200