POST login/users/:user id/updates/facebook

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
 
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
#REDIRECT [[POST login/users/:user id/updates/facebook PT-BR]]
+
== 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 <sup>1</sup>
 +
| width="200px" | optional
 +
| Update message.
 +
|-
 +
! align="left" width="180px" style="padding-left: 20px" | link <sup>1</sup>
 +
| width="200px" | optional
 +
| URL of the update attached link.
 +
|-
 +
! align="left" width="180px" style="padding-left: 20px" | place <sup>1</sup>
 +
| width="200px" | optional
 +
| Facebook Page ID of the update location.
 +
|}
 +
 
 +
<sup>1</sup> At least one of these fields must be given.
 +
 
 +
== Authentication ==
 +
 
 +
This API requires 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",
 +
                        "place": "108131585873862" }}' \
 +
        -H 'Content-type: application/json' \
 +
        --user <api_id>:<api_secret>
 +
 
 +
=== Response ===
 +
 
 +
==== Response Headers ====
 +
 
 +
HTTP/1.1 201 Created
 +
Status: 201

Latest revision as of 16:39, 30 December 2021

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 1 optional Update message.
link 1 optional URL of the update attached link.
place 1 optional Facebook Page ID of the update location.

1 At least one of these fields must be given.

Authentication

This API requires 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",
                        "place": "108131585873862" }}' \
        -H 'Content-type: application/json' \
        --user <api_id>:<api_secret>

Response

Response Headers

HTTP/1.1 201 Created
Status: 201
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox