PUT login/users/:user id/move to/:target id

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
#REDIRECT [[PUT login/users/:user id/move to/:target id PT-BR]]
+
== Description ==
 +
 
 +
Moves the data from the user "user_id" to the user "target_id" and then removes the first, keeping only the target user. Social networks access credentials and [[Social Login Tokens]] are also moved to the target user.
 +
 
 +
Use this API when you know from an external source that two users are actually the same person.
 +
 
 +
Both users must belong to the same Social Login App.
 +
 
 +
== Resource URL ==
 +
 
 +
  PUT https://api.socialidnow.com/v1/marketing/login/users/:user_id/move_to/:target_id
 +
 
 +
== Parameters ==
 +
 
 +
=== URL Parameters ===
 +
 
 +
{|
 +
! align="left" width="200px" | user_id
 +
| width="200px" | required
 +
| source user identifier. This user will be removed from the Social Login.
 +
|-
 +
! align="left" width="200px" | target_id
 +
| width="200px" | required
 +
| target user identifier. This user will receive all data from the source user.
 +
|}
 +
 
 +
== Authentication ==
 +
 
 +
This API requires Marketing Account authentication. See [[Authentication]].
 +
 
 +
== Examples ==
 +
 
 +
=== Request ===
 +
 
 +
Moves data from user "340" to the user "355" and removes user "340".
 +
 
 +
  curl -X PUT 'https://api.socialidnow.com/v1/marketing/login/users/340/move_to/355' \
 +
        --user <api_id>:<api_secret>
 +
 
 +
=== Response ===
 +
 
 +
==== Response Headers ====
 +
 
 +
HTTP/1.1 200 OK
 +
Status: 200

Revision as of 04:18, 4 November 2014

Contents

Description

Moves the data from the user "user_id" to the user "target_id" and then removes the first, keeping only the target user. Social networks access credentials and Social Login Tokens are also moved to the target user.

Use this API when you know from an external source that two users are actually the same person.

Both users must belong to the same Social Login App.

Resource URL

  PUT https://api.socialidnow.com/v1/marketing/login/users/:user_id/move_to/:target_id

Parameters

URL Parameters

user_id required source user identifier. This user will be removed from the Social Login.
target_id required target user identifier. This user will receive all data from the source user.

Authentication

This API requires Marketing Account authentication. See Authentication.

Examples

Request

Moves data from user "340" to the user "355" and removes user "340".

 curl -X PUT 'https://api.socialidnow.com/v1/marketing/login/users/340/move_to/355' \
        --user <api_id>:<api_secret>

Response

Response Headers

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