API koncový bod:
http://weblytics.cz/api/v1/websites
Příklad žádosti:
curl --location --request GET 'http://weblytics.cz/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
sort
per_page
100
. Výchozí na: 10
.API koncový bod:
http://weblytics.cz/api/v1/websites/{id}
Příklad žádosti:
curl --location --request GET 'http://weblytics.cz/api/v1/websites/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API koncový bod:
http://weblytics.cz/api/v1/websites
Příklad žádosti:
curl --location --request POST 'http://weblytics.cz/api/v1/websites' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
privacy
1
.password
privacy
nastaveným na 2
.email
0
.exclude_bots
1
.exclude_params
exclude_ips
API koncový bod:
http://weblytics.cz/api/v1/websites/{id}
Příklad žádosti:
curl --location --request PUT 'http://weblytics.cz/api/v1/websites/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
privacy
password
privacy
nastaveným na 2
.email
exclude_bots
exclude_params
exclude_ips
API koncový bod:
http://weblytics.cz/websites/{id}/destroy
Příklad žádosti:
curl --location --request DELETE 'http://weblytics.cz/websites/{id}/destroy' \ --header 'Authorization: Bearer {api_key}'