List creator attribution links
curl --request GET \
--url https://app.openlight.tech/api/creator/v1/links \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/creator/v1/links"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.openlight.tech/api/creator/v1/links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.openlight.tech/api/creator/v1/links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.openlight.tech/api/creator/v1/links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.openlight.tech/api/creator/v1/links")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/creator/v1/links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"links": [
{
"id": "<string>",
"brand_id": "<string>",
"product_id": "<string>",
"url": "<string>",
"destination_url": "<string>",
"marketplace": "<string>",
"tracking_id": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}链接
列出归因链接
列出当前创作者已经创建的归因链接
GET
/
api
/
creator
/
v1
/
links
List creator attribution links
curl --request GET \
--url https://app.openlight.tech/api/creator/v1/links \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/creator/v1/links"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.openlight.tech/api/creator/v1/links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.openlight.tech/api/creator/v1/links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.openlight.tech/api/creator/v1/links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.openlight.tech/api/creator/v1/links")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/creator/v1/links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"links": [
{
"id": "<string>",
"brand_id": "<string>",
"product_id": "<string>",
"url": "<string>",
"destination_url": "<string>",
"marketplace": "<string>",
"tracking_id": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}使用该接口获取当前创作者 Token owner 创建过的归因链接。列表接口支持游标分页:
limit 默认 25、最大 100,传入上一页返回的 next_cursor 作为 cursor 可继续读取下一页;没有更多结果时 next_cursor 为 null。
响应字段:
id:归因链接 ID。brand_id:品牌 ID。product_id:商品 ID。url:可分发的归因链接 URL。destination_url:Amazon 落地页 URL,通常为商品详情页或创建链接时传入的目标页。marketplace:归因链接对应的 Amazon 站点域名,例如amazon.com、amazon.co.uk、amazon.de。该字段用于判断链接所属站点,不表示合作状态,也不是追踪 tag。tracking_id:创建链接时传入的客户侧追踪标识;未传入时为空字符串。后续报表会使用该字段帮助下游系统做归因。status:链接状态。当前固定返回active。created_at:链接创建时间。
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
每页返回数量,默认 25,最大 100。Number of items per page; defaults to 25 and maxes out at 100.
必填范围:
x <= 100上一页响应返回的下一页游标。Cursor returned as next_cursor by the previous page.