Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions api_check.py
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
flask
flask
requests