PUT push notifications/devices/:id/link to/:login user id

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
#REDIRECT [[PUT push notifications/devices/:id/link to/:login user id PT-BR]]
+
== Description ==
 +
 
 +
Relates a device with a Social Login user.
 +
 
 +
== Resource URL ==
 +
 
 +
  PUT https://api.socialidnow.com/v1/marketing/push_notifications/devices/:id/link_to/:login_user_id
 +
 
 +
== Parameters ==
 +
 
 +
=== URL Parameters ===
 +
 
 +
{|
 +
! align="left" width="200px" | id
 +
| width="200px" | required
 +
| device identifier.
 +
|-
 +
! align="left" width="200px" | login_user_id
 +
| width="200px" | required
 +
| user identifier.
 +
|}
 +
 
 +
== Authentication ==
 +
 
 +
This API requires Social Login App authentication. See [[Authentication]].
 +
 
 +
== Response ==
 +
 
 +
=== Response Status ===
 +
 
 +
{|
 +
! align="left" width="200px" | ok (200)
 +
| The request was successful.
 +
|-
 +
! align="left" width="200px" | unauthorized (401)
 +
| The authentication is wrong. See [[Authentication]].
 +
|-
 +
! align="left" width="200px" | forbidden (403)
 +
| The device does not belong to the Social Login App.
 +
|-
 +
! align="left" width="200px" | unprocessable_entity (422)
 +
| This device couldn't be related to this user.
 +
|-
 +
! align="left" width="200px" | not_found (404)
 +
| Device or user not found.
 +
|-
 +
! align="left" width="200px" | internal_server_error (500)
 +
| An unknown error happened.
 +
|}
 +
 
 +
== Examples ==
 +
 
 +
=== Request ===
 +
 
 +
Relates the device "4e5274835193bd40844a2102e0a33b61b09a144a6e0ae4413cfd17e30be6dc4d" with the user "33943"
 +
 
 +
  curl -iX PUT 'https://api.socialidnow.com/v1/marketing/push_notifications/devices/4e5274835193bd40844a2102e0a33b61b09a144a6e0ae4413cfd17e30be6dc4d/link_to/33943' \
 +
        --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf
 +
 
 +
=== Response ===
 +
 
 +
==== Response Headers ====
 +
 
 +
HTTP/1.1 200 Ok
 +
Status: 200

Revision as of 20:17, 3 November 2014

Contents

Description

Relates a device with a Social Login user.

Resource URL

  PUT https://api.socialidnow.com/v1/marketing/push_notifications/devices/:id/link_to/:login_user_id

Parameters

URL Parameters

id required device identifier.
login_user_id required user identifier.

Authentication

This API requires Social Login App authentication. See Authentication.

Response

Response Status

ok (200) The request was successful.
unauthorized (401) The authentication is wrong. See Authentication.
forbidden (403) The device does not belong to the Social Login App.
unprocessable_entity (422) This device couldn't be related to this user.
not_found (404) Device or user not found.
internal_server_error (500) An unknown error happened.

Examples

Request

Relates the device "4e5274835193bd40844a2102e0a33b61b09a144a6e0ae4413cfd17e30be6dc4d" with the user "33943"

 curl -iX PUT 'https://api.socialidnow.com/v1/marketing/push_notifications/devices/4e5274835193bd40844a2102e0a33b61b09a144a6e0ae4413cfd17e30be6dc4d/link_to/33943' \
        --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf

Response

Response Headers

HTTP/1.1 200 Ok
Status: 200
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox