API endpoint:
https://go2.vn/api/v1/links
Request example:
curl --location --request GET 'https://go2.vn/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
by
title
for Tiêu đề, alias
for Alias, url
for URL.status
0
for Tất cả, 1
for Kích hoạt, 2
for Hết hạn, 3
for Vô hiệu hóa.space
domain
sort
desc
for Giảm dần, asc
for Tăng dần, max
for Best performing, min
for Least performing.API endpoint:
https://go2.vn/api/v1/links/{id}
Request example:
curl --location --request GET 'https://go2.vn/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://go2.vn/api/v1/links
Request example:
curl --location --request POST 'https://go2.vn/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
disabled
0
.public
0
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for Geographic, 2
for Platform, 3
for Rotation.geo[index][key]
geo[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
rotation[index][value]
API endpoint:
https://go2.vn/api/v1/links/{id}
Request example:
curl --location --request PUT 'https://go2.vn/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
disabled
0
.public
0
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for Geographic, 2
for Platform, 3
for Rotation.geo[index][key]
geo[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
rotation[index][value]
API endpoint:
https://go2.vn/api/v1/links/{id}
Request example:
curl --location --request DELETE 'https://go2.vn/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'