Endpoint API:
https://phprank.ro/api/v1/reports
Exemplu de request:
curl --location --request GET 'https://phprank.ro/api/v1/reports' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_byurl pentru URL. Valoarea implicită este: url.projectresultgood pentru Bun, decent pentru Decent, bad pentru Rău.sort_byid pentru Data creării, generated_at pentru Data generării, url pentru URL, result pentru Rezultat. Valoarea implicită este: id.sortdesc pentru Descrescător, asc pentru Crescător. Valoarea implicită este: desc.per_page10, 25, 50, 100. Valoarea implicită este: 10.Endpoint API:
https://phprank.ro/api/v1/reports/{id}
Exemplu de request:
curl --location --request GET 'https://phprank.ro/api/v1/reports/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Endpoint API:
https://phprank.ro/api/v1/reports
Exemplu de request:
curl --location --request POST 'https://phprank.ro/api/v1/reports' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
urlprivacy0 pentru Public, 1 pentru Privat, 2 pentru Parola. Valoarea implicită este: 0.passwordprivacy set to 2.Endpoint API:
https://phprank.ro/api/v1/reports/{id}
Exemplu de request:
curl --location --request PUT 'https://phprank.ro/api/v1/reports/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
privacy0 pentru Public, 1 pentru Privat, 2 pentru Parola.passwordprivacy set to 2.results0 pentru Nu, 1 pentru Da. Valoarea implicită este: 0.Endpoint API:
https://phprank.ro/api/v1/reports/{id}
Exemplu de request:
curl --location --request DELETE 'https://phprank.ro/api/v1/reports/{id}' \ --header 'Authorization: Bearer {api_key}'