Search...
Menu

Open up the user system (non-inductive login)

Get product ID and key

Acquisition path: Brand owner backend → Settings → Integrated

文章图片


The backend generates a login-free address

Sample code

<?php
/**
 *  Fields to be configured by your company
 */
$user_id = "user_id_01";    // User ID of your company   Required Fields
$timestamp = time();        // Current Timestamp      Required Fields

$lang = "zh";               // User language, currently only Chinese, English and Russian are supported
$notification_email = "xxx@qq.com";   //E-mail address for users to receive notifications
$name = "User Name";   //User Name

/**
 * The following values are fixed and do not need to be changed (provided by us)
 */
$product_id = "123";                      //Required Fields
$secret_key = "XXXXXXXXXXXXXXXXXXXXXX";        // Encrypted Key   Required Fields
$secret_srt = $user_id . $product_id . $secret_key . $timestamp;
$secret = hash("sha256", $secret_srt);

// Login-free URL
$login_url = "https://www.partnershare.net/product/$product_id?user_id=$user_id&secret=$secret×tamp=$timestamp&lang=$lang¬ification_email=$notification_email&name=$name";
echo $login_url;

In-product integration

文章图片

Add the "Promotion Reward" entry in the product, and when the user clicks "Promotion Reward", request the backend to generate a " login-free address " in real time to realize the user connection.

PS: The login-free address is valid for half an hour, please generate it in real time.


Previous
Login
Next
Postback
Last modified: 2023-03-28