Raporlar

Notlar
Expert level
API anahtarı, isteğin Yetkilendirme başlığında Taşıyıcı belirteci olarak gönderilmelidir. API anahtarınızı alın.
Liste

API uç noktası:

GET
https://analiz.ahost.web.tr/api/v1/reports

Örnek isteyin:

curl --location --request GET 'https://analiz.ahost.web.tr/api/v1/reports' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parametre
Tür
Açıklama
search
i̇steğe bağlı string
Arama sorgusu.
search_by
i̇steğe bağlı string
Şuna göre ara. Olası değerler: url için URL. Varsayılanlar: url.
project
i̇steğe bağlı string
Proje adı.
result
i̇steğe bağlı string
The report result. Olası değerler: good için İyi, decent için Düzgün, bad için Kötü.
sort_by
i̇steğe bağlı string
Sıralama ölçütü. Olası değerler: id için Oluşturulma tarihi, generated_at için Oluşturulma tarihi, url için URL, result için Sonuç. Varsayılanlar: id.
sort
i̇steğe bağlı string
Sırala. Olası değerler: desc için Azalan, asc için Artan. Varsayılanlar: desc.
per_page
i̇steğe bağlı int
Sayfa Başına Sonuç. Olası değerler: 10, 25, 50, 100. Varsayılanlar: 10.
Gör

API uç noktası:

GET
https://analiz.ahost.web.tr/api/v1/reports/{id}

Örnek isteyin:

curl --location --request GET 'https://analiz.ahost.web.tr/api/v1/reports/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Mağaza

API uç noktası:

POST
https://analiz.ahost.web.tr/api/v1/reports

Örnek isteyin:

curl --location --request POST 'https://analiz.ahost.web.tr/api/v1/reports' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parametre
Tür
Açıklama
url
gerekli string
The webpage's URL.
privacy
i̇steğe bağlı integer
Report page privacy. Olası değerler: 0 için Genel, 1 için Özel, 2 için Şifre. Varsayılanlar: 1.
password
i̇steğe bağlı string
The password for the report page. Only works with privacy set to 2.
Güncelleme

API uç noktası:

PUT PATCH
https://analiz.ahost.web.tr/api/v1/reports/{id}

Örnek isteyin:

curl --location --request PUT 'https://analiz.ahost.web.tr/api/v1/reports/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parametre
Tür
Açıklama
privacy
i̇steğe bağlı integer
Report page privacy. Olası değerler: 0 için Genel, 1 için Özel, 2 için Şifre.
password
i̇steğe bağlı string
The password for the report page. Only works with privacy set to 2.
results
i̇steğe bağlı integer
Update the report results. Olası değerler: 0 için Hayır, 1 için Evet. Varsayılanlar: 0.
Sil

API uç noktası:

DELETE
https://analiz.ahost.web.tr/api/v1/reports/{id}

Örnek isteyin:

curl --location --request DELETE 'https://analiz.ahost.web.tr/api/v1/reports/{id}' \
--header 'Authorization: Bearer {api_key}'