POST oauth/login/user/push notifications/devices

From Social ID Developers
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:POST login/user/push_notifications/devices}} == Description == Relates a device with a Social Login user. == Resource URL == POST https://api.socialidnow....")
 
 
(5 intermediate revisions by one user not shown)
Line 2: Line 2:
 
== Description ==
 
== Description ==
  
Relates a device with a Social Login user.
+
Relates a device with a Login User.
  
 
== Resource URL ==
 
== Resource URL ==
Line 20: Line 20:
 
== Authentication ==
 
== Authentication ==
  
This API requires Login User Token authentication. See [[Authentication]].
+
This API requires Login User Token authentication. See [[OAuth_APIs|OAuth]].
  
 
== Response ==
 
== Response ==
Line 29: Line 29:
 
! align="left" width="200px" | ok (200)
 
! align="left" width="200px" | ok (200)
 
| The request was successful.
 
| The request was successful.
 +
|-
 +
! align="left" width="200px" | bad_request (400)
 +
| Some required parameter was not informed.
 
|-
 
|-
 
! align="left" width="200px" | unauthorized (401)
 
! align="left" width="200px" | unauthorized (401)
| The authentication is wrong. See [[Authentication]].
+
| The authentication is wrong. See [[OAuth_APIs|OAuth]].
 
|-
 
|-
 
! align="left" width="200px" | forbidden (403)
 
! align="left" width="200px" | forbidden (403)
| The device does not belong to the Social Login App.
+
| The device does not belong to the Login App.
 
|-
 
|-
 
! align="left" width="200px" | unprocessable_entity (422)
 
! align="left" width="200px" | unprocessable_entity (422)
Line 56: Line 59:
 
       "device_id": "4e5274835193bd40844a2102e0a33b61b09a144a6e0ae4413cfd17e30be6dc4d"
 
       "device_id": "4e5274835193bd40844a2102e0a33b61b09a144a6e0ae4413cfd17e30be6dc4d"
 
       }' \
 
       }' \
   -H "Authentication: Bearer 0358172c0cd160dfa731c7a76284fe0c30580f3fc8d827831e9f8b1821d8124c"
+
   -H "Content-type: application/json" \
 +
  -H "Authorization: Bearer 0358172c0cd160dfa731c7a76284fe0c30580f3fc8d827831e9f8b1821d8124c"
  
 
=== Response ===
 
=== Response ===

Latest revision as of 17:03, 30 December 2021

Contents

Description

Relates a device with a Login User.

Resource URL

  POST https://api.socialidnow.com/v2/marketing/login/user/push_notifications/devices

Parameters

JSON Parameters

device_id required device identifier.

Authentication

This API requires Login User Token authentication. See OAuth.

Response

Response Status

ok (200) The request was successful.
bad_request (400) Some required parameter was not informed.
unauthorized (401) The authentication is wrong. See OAuth.
forbidden (403) The device does not belong to the 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.

 curl -iX POST https://api.socialidnow.com/v2/marketing/login/user/push_notifications/devices \
 -d '{
      "device_id": "4e5274835193bd40844a2102e0a33b61b09a144a6e0ae4413cfd17e30be6dc4d"
     }' \
 -H "Content-type: application/json" \
 -H "Authorization: Bearer 0358172c0cd160dfa731c7a76284fe0c30580f3fc8d827831e9f8b1821d8124c"

Response

Response Headers

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