Hononga
GET https://tistos.com/api/links/
curl --request GET \
--url 'https://tistos.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Ngā Tūāpapa | Taipitopito | Whakaahuatanga |
---|---|---|
page | Kōwhiringa Tāuru | Ko te tau whārangi e hiahia ana koe i ngā hua mai. Ka tūtohu ki te 1 . |
results_per_page | Kōwhiringa Tāuru | E hia ngā hua e hiahia ana koe mō ia whārangi. Ko ngā uara e whakaaetia ana ko: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Ko te paerewa ko 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,
"date": "2020-11-15 12:00:00"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://tistos.com/api/links?&page=1",
"last": "https://tistos.com/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://tistos.com/api/links?&page=1"
}
}
GET https://tistos.com/api/links/{link_id}
curl --request GET \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.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,
"date": "2020-11-15 12:00:00"
}
}
POST https://tistos.com/api/links
Ngā Tūāpapa | Taipitopito | Whakaahuatanga |
---|---|---|
type | Kōwhiringa Rārangi | link |
location_url | Tonoa Rārangi | Te URL o te wāhi e haere ana. |
url | Kōwhiringa Rārangi | Ko te ingoa URL o te hono i hangaia. Tukua hei kore mō tētahi e hangaia ana i te mea rerekē. |
domain_id | Kōwhiringa Tāuru | - |
project_id | Kōwhiringa Tāuru | - |
pixels_ids | Kōwhiringa Rārangi Tāuru | - |
schedule | Kōwhiringa Pūnaha Tūāhua | - |
start_date | Kōwhiringa Rārangi | Ka wātea ina: schedule = true |
end_date | Kōwhiringa Rārangi | Ka wātea ina: schedule = true |
clicks_limit | Kōwhiringa Tāuru | - |
expiration_url | Kōwhiringa Rārangi | - |
sensitive_content | Kōwhiringa Pūnaha Tūāhua | - |
http_status_code | Kōwhiringa Tāuru | Ngā uara e whakaaetia ana: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Kōwhiringa Pūnaha Tūāhua | - |
cloaking_is_enabled | Kōwhiringa Pūnaha Tūāhua | - |
cloaking_title | Kōwhiringa Rārangi | - |
cloaking_favicon | Kōwhiringa Kōnae | - |
cloaking_opengraph | Kōwhiringa Kōnae | - |
password | Kōwhiringa Rārangi | - |
forward_query_parameters_is_enabled | Kōwhiringa Pūnaha Tūāhua | - |
utm_source | Kōwhiringa missing_translation: api_documentation.strings | - |
utm_medium | Kōwhiringa missing_translation: api_documentation.strings | - |
utm_campaign | Kōwhiringa missing_translation: api_documentation.strings | - |
targeting_type | Kōwhiringa Rārangi | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Kōwhiringa Rārangi | (targeting_type=continent_code) |
targeting_continent_code_value[index] | Kōwhiringa Rārangi | (targeting_type=continent_code) |
targeting_country_code_key[index] | Kōwhiringa Rārangi | (targeting_type=country_code) |
targeting_country_code_value[index] | Kōwhiringa Rārangi | (targeting_type=country_code) |
targeting_city_name_key[index] | Kōwhiringa Rārangi | (targeting_type=city_name) |
targeting_city_name_value[index] | Kōwhiringa Rārangi | (targeting_type=city_name) |
targeting_device_type_key[index] | Kōwhiringa Rārangi | (targeting_type=device_type) |
targeting_device_type_value[index] | Kōwhiringa Rārangi | (targeting_type=device_type) |
targeting_browser_language_key[index] | Kōwhiringa Rārangi | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Kōwhiringa Rārangi | (targeting_type=browser_language) |
targeting_rotation_key[index] | Kōwhiringa Rārangi | (targeting_type=rotation) |
targeting_rotation_value[index] | Kōwhiringa Rārangi | (targeting_type=rotation) |
targeting_os_name_key[index] | Kōwhiringa Rārangi | (targeting_type=os_name) |
targeting_os_name_value[index] | Kōwhiringa Rārangi | (targeting_type=os_name) |
targeting_browser_name_key[index] | Kōwhiringa Rārangi | (targeting_type=browser_name) |
targeting_browser_name_value[index] | Kōwhiringa Rārangi | (targeting_type=browser_name) |
curl --request POST \
--url 'https://tistos.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://tistos.com/' \
--url 'https://tistos.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://tistos.com/' \
{
"data": {
"id": 1
}
}
POST https://tistos.com/api/links/{link_id}
Ngā Tūāpapa | Taipitopito | Whakaahuatanga |
---|---|---|
location_url | Kōwhiringa Rārangi | Te URL o te wāhi e haere ana. |
url | Kōwhiringa Rārangi | Ko te ingoa URL o te hono i hangaia. Tukua hei kore mō tētahi e hangaia ana i te mea rerekē. |
domain_id | Kōwhiringa Tāuru | - |
project_id | Kōwhiringa Tāuru | - |
pixels_ids | Kōwhiringa Rārangi Tāuru | - |
schedule | Kōwhiringa Pūnaha Tūāhua | - |
start_date | Kōwhiringa Rārangi | Ka wātea ina: schedule = true |
end_date | Kōwhiringa Rārangi | Ka wātea ina: schedule = true |
clicks_limit | Kōwhiringa Tāuru | - |
expiration_url | Kōwhiringa Rārangi | - |
sensitive_content | Kōwhiringa Pūnaha Tūāhua | - |
http_status_code | Kōwhiringa Tāuru | Ngā uara e whakaaetia ana: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Kōwhiringa Pūnaha Tūāhua | - |
cloaking_is_enabled | Kōwhiringa Pūnaha Tūāhua | - |
cloaking_title | Kōwhiringa Rārangi | - |
cloaking_favicon | Kōwhiringa Kōnae | - |
cloaking_opengraph | Kōwhiringa Kōnae | - |
password | Kōwhiringa Rārangi | - |
forward_query_parameters_is_enabled | Kōwhiringa Pūnaha Tūāhua | - |
utm_source | Kōwhiringa missing_translation: api_documentation.strings | - |
utm_medium | Kōwhiringa missing_translation: api_documentation.strings | - |
utm_campaign | Kōwhiringa missing_translation: api_documentation.strings | - |
targeting_type | Kōwhiringa Rārangi | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Kōwhiringa Rārangi | (targeting_type=continent_code) |
targeting_continent_code_value[index] | Kōwhiringa Rārangi | (targeting_type=continent_code) |
targeting_country_code_key[index] | Kōwhiringa Rārangi | (targeting_type=country_code) |
targeting_country_code_value[index] | Kōwhiringa Rārangi | (targeting_type=country_code) |
targeting_city_name_key[index] | Kōwhiringa Rārangi | (targeting_type=city_name) |
targeting_city_name_value[index] | Kōwhiringa Rārangi | (targeting_type=city_name) |
targeting_device_type_key[index] | Kōwhiringa Rārangi | (targeting_type=device_type) |
targeting_device_type_value[index] | Kōwhiringa Rārangi | (targeting_type=device_type) |
targeting_browser_language_key[index] | Kōwhiringa Rārangi | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Kōwhiringa Rārangi | (targeting_type=browser_language) |
targeting_rotation_key[index] | Kōwhiringa Rārangi | (targeting_type=rotation) |
targeting_rotation_value[index] | Kōwhiringa Rārangi | (targeting_type=rotation) |
targeting_os_name_key[index] | Kōwhiringa Rārangi | (targeting_type=os_name) |
targeting_os_name_value[index] | Kōwhiringa Rārangi | (targeting_type=os_name) |
targeting_browser_name_key[index] | Kōwhiringa Rārangi | (targeting_type=browser_name) |
targeting_browser_name_value[index] | Kōwhiringa Rārangi | (targeting_type=browser_name) |
curl --request POST \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://tistos.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://tistos.com/api/links/{link_id}
curl --request DELETE \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \