POST login/users/:user id/updates/facebook
(Difference between revisions)
(moved POST login/users/:user id/updates/facebook to POST login/users/:user id/updates/facebook PT-BR) |
|||
Line 1: | Line 1: | ||
− | + | == Description == | |
+ | |||
+ | Posts a message to the user Facebook timeline. | ||
+ | |||
+ | == Resource URL == | ||
+ | |||
+ | POST https://api.socialidnow.com/v1/marketing/login/users/:user_id/updates/facebook | ||
+ | |||
+ | == Parameters == | ||
+ | |||
+ | === URL Parameters === | ||
+ | |||
+ | {| | ||
+ | ! align="left" width="200px" | user_id | ||
+ | | width="200px" | required | ||
+ | | user identifier. | ||
+ | |} | ||
+ | |||
+ | === JSON Parameters === | ||
+ | |||
+ | {| | ||
+ | ! align="left" width="200px" | update | ||
+ | | width="200px" | required | ||
+ | | a hash with the necessary fields to post the update: | ||
+ | |- | ||
+ | ! align="left" width="180px" style="padding-left: 20px" | message | ||
+ | | width="200px" | optional | ||
+ | | update message. | ||
+ | |- | ||
+ | ! align="left" width="180px" style="padding-left: 20px" | link | ||
+ | | width="200px" | optional | ||
+ | | update url. | ||
+ | |- | ||
+ | ! align="left" width="180px" style="padding-left: 20px" | picture | ||
+ | | width="200px" | optional | ||
+ | | update picture url. | ||
+ | |- | ||
+ | ! align="left" width="180px" style="padding-left: 20px" | name | ||
+ | | width="200px" | optional | ||
+ | | update link name. | ||
+ | |- | ||
+ | ! align="left" width="180px" style="padding-left: 20px" | caption | ||
+ | | width="200px" | optional | ||
+ | | update link caption. | ||
+ | |- | ||
+ | ! align="left" width="180px" style="padding-left: 20px" | description | ||
+ | | width="200px" | optional | ||
+ | | update link caption. | ||
+ | |} | ||
+ | |||
+ | == Authentication == | ||
+ | |||
+ | This API requires Marketing Account authentication. See [[Authentication]]. | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | === Request === | ||
+ | |||
+ | curl -iX POST 'https://api.socialidnow.com/v1/marketing/login/users/:user_id/updates/facebook' \ | ||
+ | -d '{"update": {"message": "Visit Social-ID NOW", | ||
+ | "link": "http://www.socialidnow.com", | ||
+ | "picture": "http://www.socialidnow.com/logo.png", | ||
+ | "name": "Social-ID NOW", | ||
+ | "caption": "Social Infrastructure Platform", | ||
+ | "description": "Social-ID NOW. Known your client better." }}' \ | ||
+ | -H 'Content-type: application/json' \ | ||
+ | --user <api_id>:<api_secret> | ||
+ | |||
+ | === Response === | ||
+ | |||
+ | ==== Response Headers ==== | ||
+ | |||
+ | HTTP/1.1 201 Created | ||
+ | Status: 201 |
Revision as of 00:17, 4 November 2014
Contents |
Description
Posts a message to the user Facebook timeline.
Resource URL
POST https://api.socialidnow.com/v1/marketing/login/users/:user_id/updates/facebook
Parameters
URL Parameters
user_id | required | user identifier. |
---|
JSON Parameters
update | required | a hash with the necessary fields to post the update: |
---|---|---|
message | optional | update message. |
link | optional | update url. |
picture | optional | update picture url. |
name | optional | update link name. |
caption | optional | update link caption. |
description | optional | update link caption. |
Authentication
This API requires Marketing Account authentication. See Authentication.
Examples
Request
curl -iX POST 'https://api.socialidnow.com/v1/marketing/login/users/:user_id/updates/facebook' \ -d '{"update": {"message": "Visit Social-ID NOW", "link": "http://www.socialidnow.com", "picture": "http://www.socialidnow.com/logo.png", "name": "Social-ID NOW", "caption": "Social Infrastructure Platform", "description": "Social-ID NOW. Known your client better." }}' \ -H 'Content-type: application/json' \ --user <api_id>:<api_secret>
Response
Response Headers
HTTP/1.1 201 Created Status: 201