API endpoint:
http://myanalytics.dev/api/v1/websites
Request example:
curl --location --request GET 'http://myanalytics.dev/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
sort
desc
for Z-A, asc
for A-Z.API endpoint:
http://myanalytics.dev/api/v1/websites/{id}
Request example:
curl --location --request GET 'http://myanalytics.dev/api/v1/websites/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
http://myanalytics.dev/api/v1/websites
Request example:
curl --location --request POST 'http://myanalytics.dev/api/v1/websites' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
password
privacy
set to 2
.privacy
0
for Public, 1
for Private, 2
for Password.email
0
for Disabled, 1
for Enabled.exclude_bots
0
for Disabled, 1
for Enabled.exclude_ips
API endpoint:
http://myanalytics.dev/api/v1/websites/{id}
Request example:
curl --location --request PUT 'http://myanalytics.dev/api/v1/websites/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
password
privacy
set to 2
.privacy
0
for Public, 1
for Private, 2
for Password.email
0
for Disabled, 1
for Enabled.exclude_bots
0
for Disabled, 1
for Enabled.exclude_ips
API endpoint:
http://myanalytics.dev/api/v1/websites/{id}
Request example:
curl --location --request DELETE 'http://myanalytics.dev/api/v1/websites/{id}' \ --header 'Authorization: Bearer {api_key}'