ปลายทาง 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}'
searchsearch_bytitle for ชื่อ, alias for นามแฝง, url for ลิงก์. Defaults to: title.status0 for ทั้งหมด, 1 for ใช้งาน, 2 for หมดอายุ, 3 for ปิดใช้งาน. Defaults to: 0.spacedomainpixelsort_byid for วันที่สร้าง, clicks for คลิก, title for ชื่อ, alias for นามแฝง, url for ลิงก์. Defaults to: id.sortdesc for จากมากไปน้อย, asc for จากน้อยไปมาก. Defaults to: desc.per_page10, 25, 50, 100. Defaults to: 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}'
urldomainaliaspasswordspacepixelsdisabled0 for ใช้งาน, 1 for ปิดใช้งาน. Defaults to: 0.privacy0 for สาธารณะ, 1 for ส่วนตัว, 2 for รหัสผ่าน. Defaults to: 0.privacy_passwordprivacy set to 2.expiration_urlexpiration_dateYYYY-MM-DD format.expiration_timeHH:MM format.expiration_clickstarget_type0 for ไม่มี, 1 for ภูมิศาสตร์, 2 for แพลตฟอร์ม, 4 for ลิงก์สุ่ม.country[index][key]country[index][value]platform[index][key]iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.platform[index][value]language[index][key]language[index][value]rotation[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}' \ --data-urlencode 'url={url}'
urlaliaspasswordspacepixelsdisabled0 for ใช้งาน, 1 for ปิดใช้งาน.privacy0 for สาธารณะ, 1 for ส่วนตัว, 2 for รหัสผ่าน.privacy_passwordprivacy set to 2.expiration_urlexpiration_dateYYYY-MM-DD format.expiration_timeHH:MM format.expiration_clickstarget_type0 for ไม่มี, 1 for ภูมิศาสตร์, 2 for แพลตฟอร์ม, 4 for ลิงก์สุ่ม.country[index][key]country[index][value]platform[index][key]iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.platform[index][value]language[index][key]language[index][value]rotation[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}'