링크
GET https://olinke.com/api/links/
curl --request GET \
--url 'https://olinke.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://olinke.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
매개변수 | 세부사항 | 설명 |
---|---|---|
page | 선택 사항 정수 | 결과를 원하는 페이지 번호입니다. 기본값은 1 입니다. |
results_per_page | 선택 사항 정수 | 페이지당 원하는 결과 수는 얼마입니까? 허용되는 값은: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . 기본값은 25 입니다. |
{
"data": [
{
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-03-15 10:30:40"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://olinke.com/api/links?&page=1",
"last": "https://olinke.com/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://olinke.com/api/links?&page=1"
}
}
GET https://olinke.com/api/links/{link_id}
curl --request GET \
--url 'https://olinke.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://olinke.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-03-15 10:30:40"
}
}
POST https://olinke.com/api/links
매개변수 | 세부사항 | 설명 |
---|---|---|
type | 선택 사항 문자열 | link |
location_url | 필수 문자열 | 목적지의 URL. |
url | 선택 사항 문자열 | 생성된 링크의 URL 별칭. 무작위로 생성된 것을 원하면 비워 두세요. |
domain_id | 선택 사항 정수 | - |
project_id | 선택 사항 정수 | - |
pixels_ids | 선택 사항 배열 정수 | - |
schedule | 선택 사항 부울 | - |
start_date | 선택 사항 문자열 | 사용 가능 시: schedule = true |
end_date | 선택 사항 문자열 | 사용 가능 시: schedule = true |
clicks_limit | 선택 사항 정수 | - |
expiration_url | 선택 사항 문자열 | - |
sensitive_content | 선택 사항 부울 | - |
http_status_code | 선택 사항 정수 | 허용된 값: 301 , 302 , 307 , 308 |
app_linking_is_enabled | 선택 사항 부울 | - |
cloaking_is_enabled | 선택 사항 부울 | - |
cloaking_title | 선택 사항 문자열 | - |
cloaking_custom_js | 선택 사항 문자열 | - |
cloaking_favicon | 선택 사항 파일 | - |
cloaking_opengraph | 선택 사항 파일 | - |
password | 선택 사항 문자열 | - |
forward_query_parameters_is_enabled | 선택 사항 부울 | - |
utm_source | 선택 사항 문자열 | - |
utm_medium | 선택 사항 문자열 | - |
utm_campaign | 선택 사항 문자열 | - |
targeting_type | 선택 사항 문자열 | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = continent_code |
targeting_continent_code_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = continent_code |
targeting_country_code_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = country_code |
targeting_country_code_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = country_code |
targeting_city_name_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = city_name |
targeting_city_name_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = city_name |
targeting_device_type_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = device_type |
targeting_device_type_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = device_type |
targeting_browser_language_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_language |
targeting_browser_language_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_language |
targeting_rotation_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = rotation |
targeting_rotation_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = rotation |
targeting_os_name_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = os_name |
targeting_os_name_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = os_name |
targeting_browser_name_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_name |
targeting_browser_name_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_name |
curl --request POST \
--url 'https://olinke.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://olinke.com/' \
--url 'https://olinke.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://olinke.com/' \
{
"data": {
"id": 1
}
}
POST https://olinke.com/api/links/{link_id}
매개변수 | 세부사항 | 설명 |
---|---|---|
location_url | 선택 사항 문자열 | 목적지의 URL. |
url | 선택 사항 문자열 | 생성된 링크의 URL 별칭. 무작위로 생성된 것을 원하면 비워 두세요. |
domain_id | 선택 사항 정수 | - |
project_id | 선택 사항 정수 | - |
pixels_ids | 선택 사항 배열 정수 | - |
schedule | 선택 사항 부울 | - |
start_date | 선택 사항 문자열 | 사용 가능 시: schedule = true |
end_date | 선택 사항 문자열 | 사용 가능 시: schedule = true |
clicks_limit | 선택 사항 정수 | - |
expiration_url | 선택 사항 문자열 | - |
sensitive_content | 선택 사항 부울 | - |
http_status_code | 선택 사항 정수 | 허용된 값: 301 , 302 , 307 , 308 |
app_linking_is_enabled | 선택 사항 부울 | - |
cloaking_is_enabled | 선택 사항 부울 | - |
cloaking_title | 선택 사항 문자열 | - |
cloaking_custom_js | 선택 사항 문자열 | - |
cloaking_favicon | 선택 사항 파일 | - |
cloaking_opengraph | 선택 사항 파일 | - |
password | 선택 사항 문자열 | - |
forward_query_parameters_is_enabled | 선택 사항 부울 | - |
utm_source | 선택 사항 문자열 | - |
utm_medium | 선택 사항 문자열 | - |
utm_campaign | 선택 사항 문자열 | - |
targeting_type | 선택 사항 문자열 | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = continent_code |
targeting_continent_code_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = continent_code |
targeting_country_code_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = country_code |
targeting_country_code_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = country_code |
targeting_city_name_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = city_name |
targeting_city_name_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = city_name |
targeting_device_type_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = device_type |
targeting_device_type_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = device_type |
targeting_browser_language_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_language |
targeting_browser_language_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_language |
targeting_rotation_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = rotation |
targeting_rotation_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = rotation |
targeting_os_name_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = os_name |
targeting_os_name_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = os_name |
targeting_browser_name_key[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_name |
targeting_browser_name_value[index] | 선택 사항 문자열 | 사용 가능 시: targeting_type = browser_name |
curl --request POST \
--url 'https://olinke.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://olinke.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://olinke.com/api/links/{link_id}
curl --request DELETE \
--url 'https://olinke.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://olinke.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \