diff --git a/api_check.py b/api_check.py new file mode 100644 index 00000000..bb48c4ec --- /dev/null +++ b/api_check.py @@ -0,0 +1,14 @@ +import requests + +AUTH = 'AfasToken PHRva2VuPjx2ZXJzaW9uPjE8L3ZlcnNpb24+PGRhdGE+OENDNjVGQUE3RjBGNEYwMkIxRjVFRDAyOTA5RDEyQzBCRDlBQUNCMTNEREM0MkNEODMxRTQyNzExQ0JGMzFCQzwvZGF0YT48L3Rva2VuPg==' +url = "https://83448.rest.afas.online/profitrestservices/connectors/ETL2_Dossier2_Verzuimverloop/" + +headers = { + 'Authorization': AUTH +} + +response = requests.get(url, headers=headers) + +print(f"Status code: {response.status_code}") +print("Headers:", response.headers) +print("Response body:", response.text) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 8ab6294c..5eaf725f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -flask \ No newline at end of file +flask +requests \ No newline at end of file