จุดสิ้นสุด API
https://chimera.market.pna.co.th/api/v1/links
ขอตัวอย่าง
curl --location --request GET 'https://chimera.market.pna.co.th/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameters
search
search_by
title สำหรับ ชื่อ, alias สำหรับ ชื่อลิงก์กำหนดเอง (Alias), url สำหรับ URL ค่าเริ่มต้นเป็น: title
status
0 สำหรับ ทั้งหมด, 1 สำหรับ เปิดใช้งานอยู่, 2 สำหรับ หมดอายุแล้ว, 3 สำหรับ ปิดใช้งาน ค่าเริ่มต้นเป็น: 0
space_id
domain_id
pixel_id
sort_by
id สำหรับ วันที่สร้าง, clicks สำหรับ จำนวนคลิก, title สำหรับ ชื่อ, alias สำหรับ ชื่อลิงก์กำหนดเอง (Alias), url สำหรับ URL ค่าเริ่มต้นเป็น: id
sort
desc สำหรับ จากมากไปน้อย, asc สำหรับ จากน้อยไปมาก ค่าเริ่มต้นเป็น: desc
per_page
10, 25, 50, 100 ค่าเริ่มต้นเป็น: 10
จุดสิ้นสุด API
https://chimera.market.pna.co.th/api/v1/links/{id}
ขอตัวอย่าง
curl --location --request GET 'https://chimera.market.pna.co.th/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
จุดสิ้นสุด API
https://chimera.market.pna.co.th/api/v1/links
ขอตัวอย่าง
curl --location --request POST 'https://chimera.market.pna.co.th/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
Parameters
url
domain_id
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0 สำหรับ ไม่, 1 สำหรับ ใช่ ค่าเริ่มต้นเป็น: 0
privacy
0 สำหรับ สาธารณะ, 1 สำหรับ ส่วนตัว, 2 สำหรับ รหัสผ่าน ค่าเริ่มต้นเป็น: 0
password
privacy ที่ตั้งค่าเป็น 2
active_period_start_at
Y-m-dTH:i:s
active_period_end_at
Y-m-dTH:i:s
clicks_limit
expiration_url
targets_type
continents สำหรับ Continents, countries สำหรับ Countries, operating_systems สำหรับ Operating systems, browsers สำหรับ Browsers, languages สำหรับ Languages, devices สำหรับ Devices, rotations สำหรับ Rotations
targets[index][key]
สำหรับ targets_type=country ค่าจะต้องอยู่ในรูปแบบ ISO 3166-1 alpha-2
สำหรับ targets_type=operating_systems ค่าที่เป็นไปได้คือ: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS
สำหรับ targets_type=browsers ค่าที่เป็นไปได้คือ: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho
สำหรับ targets_type=devices ค่าที่เป็นไปได้คือ: Desktop, Mobile, Tablet, Watch, Television
สำหรับ targets_type=languages ค่าจะต้องอยู่ในรูปแบบ ISO 639-1 alpha-2
สำหรับ targets_type=continents ค่าที่เป็นไปได้คือ: AF สำหรับ Africa, AN สำหรับ Antarctica, AS สำหรับ Asia, EU สำหรับ Europe, NA สำหรับ North America, OC สำหรับ Oceania, SA สำหรับ South America
targets[index][value]
จุดสิ้นสุด API
https://chimera.market.pna.co.th/api/v1/links/{id}
ขอตัวอย่าง
curl --location --request PUT 'https://chimera.market.pna.co.th/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
Parameters
url
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0 สำหรับ ไม่, 1 สำหรับ ใช่
privacy
0 สำหรับ สาธารณะ, 1 สำหรับ ส่วนตัว, 2 สำหรับ รหัสผ่าน
password
privacy ที่ตั้งค่าเป็น 2
active_period_start_at
Y-m-dTH:i:s
active_period_end_at
Y-m-dTH:i:s
clicks_limit
expiration_url
targets_type
continents สำหรับ Continents, countries สำหรับ Countries, operating_systems สำหรับ Operating systems, browsers สำหรับ Browsers, languages สำหรับ Languages, devices สำหรับ Devices, rotations สำหรับ Rotations
targets[index][key]
สำหรับ targets_type=country ค่าจะต้องอยู่ในรูปแบบ ISO 3166-1 alpha-2
สำหรับ targets_type=operating_systems ค่าที่เป็นไปได้คือ: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS
สำหรับ targets_type=browsers ค่าที่เป็นไปได้คือ: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho
สำหรับ targets_type=devices ค่าที่เป็นไปได้คือ: Desktop, Mobile, Tablet, Watch, Television
สำหรับ targets_type=languages ค่าจะต้องอยู่ในรูปแบบ ISO 639-1 alpha-2
สำหรับ targets_type=continents ค่าที่เป็นไปได้คือ: AF สำหรับ Africa, AN สำหรับ Antarctica, AS สำหรับ Asia, EU สำหรับ Europe, NA สำหรับ North America, OC สำหรับ Oceania, SA สำหรับ South America
targets[index][value]
จุดสิ้นสุด API
https://chimera.market.pna.co.th/api/v1/links/{id}
ขอตัวอย่าง
curl --location --request DELETE 'https://chimera.market.pna.co.th/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'