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

(Difference between revisions)
Jump to: navigation, search
(Created page with "== Description == Posts a Facebook notification to the user. == Resource URL == POST https://api.socialidnow.com/v1/marketing/login/users/:user_id/notifications/facebook...")
 
(JSON Parameters)
Line 26: Line 26:
 
! align="left" width="180px" style="padding-left: 20px" | template
 
! align="left" width="180px" style="padding-left: 20px" | template
 
| width="200px" | required
 
| width="200px" | required
| The message text of the notification. This can be formatted according to special text templating. Maximum of 180 characters.
+
| The message text of the notification. This can be formatted according to [https://developers.facebook.com/docs/games/notifications#templating special text templating]. Maximum of 180 characters.
 
|-
 
|-
 
! align="left" width="180px" style="padding-left: 20px" | href
 
! align="left" width="180px" style="padding-left: 20px" | href

Revision as of 19:58, 27 December 2014

Contents

Description

Posts a Facebook notification to the user.

Resource URL

  POST https://api.socialidnow.com/v1/marketing/login/users/:user_id/notifications/facebook

Parameters

URL Parameters

user_id required user identifier.

JSON Parameters

notification required a hash with the necessary fields to post the update:
template required The message text of the notification. This can be formatted according to special text templating. Maximum of 180 characters.
href optional The relative path that someone clicking on the notification will be directed to. This is will be appended to the Facebook app's canvas URL.

Authentication

This API requires Social Login App authentication. See Authentication.

Examples

Request

 curl -iX POST 'https://api.socialidnow.com/v1/marketing/login/users/:user_id/notifications/facebook' \
        -d '{"update": {"template": "Visit Social-ID NOW",
                        "href": "/visit/campaign" }}' \
        -H 'Content-type: application/json' \
        --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf

Response

Response Headers

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