Merges interactions (purchases, ratings, bookmarks, detail views .
..) of two different users under a single user ID. This is especially useful for online e-commerce applications working with anonymous users identified by unique tokens such as the session ID. In such applications, it may often happen that a user owns a persistent account, yet accesses the system anonymously while, e.g., putting items into a shopping cart. At some point in time, such as when the user wishes to confirm the purchase, (s)he logs into the system using his/her username and password. The interactions made under anonymous session ID then become connected with the persistent account, and merging these two together becomes desirable. Merging happens between two users referred to as the target and the source. After the merge, all the interactions of the source user are attributed to the target user, and the source user is deleted.
package |
Default |
---|
__construct(string $target_user_id, string $source_user_id, array $optional = array())
Throws |
|
---|
string
ID of the targer user.
string
ID of the source user.
array
Optional parameters given as an array containing pairs name of the parameter => value
getBodyParameters() : array
array
Values of body parameters (name of parameter => value of the parameter)
getEnsureHttps() : boolean
boolean
true if HTTPS must be chosen
getMethod() : static
static
Used HTTP method
getPath() : string
string
URI to the endpoint
getQueryParameters() : array
array
Values of query parameters (name of parameter => value of the parameter)
getTimeout() : integer
integer
Request timeout in milliseconds
setEnsureHttps( $ensure_https)
setTimeout( $timeout)
target_user_id : string
var |
ID of the targer user. |
---|
string
source_user_id : string
var |
ID of the source user. |
---|
string
cascade_create : boolean
var |
Sets whether the user targetUserId should be created if not present in the database. |
---|
boolean
optional : array
var |
Array containing values of optional parameters |
---|
array
timeout : integer
var |
Timeout of the request in milliseconds |
---|
integer
ensure_https : boolean
var |
Sets if the HTTPS must be chosen over HTTP for this request |
---|
boolean