diff --git a/Scripts/API_Tests/Client_API_Extract.csv.gz b/Scripts/API_Tests/Client_API_Extract.csv.gz new file mode 100644 index 00000000..863d9084 --- /dev/null +++ b/Scripts/API_Tests/Client_API_Extract.csv.gz @@ -0,0 +1 @@ +˴M6"X5'|3]8FZ@CAeIҕXDj:an>IDy0ovxDܑK#urЁ)'>b䵎qE}KsdX#U|BJj9??5C1ׁxˌb^B9 y蹁m&zϪgƐ \ No newline at end of file diff --git a/Scripts/API_Tests/Client_File.csv.gz b/Scripts/API_Tests/Client_File.csv.gz new file mode 100644 index 00000000..7f112213 Binary files /dev/null and b/Scripts/API_Tests/Client_File.csv.gz differ diff --git a/Scripts/API_Tests/api_extracts.py b/Scripts/API_Tests/api_extracts.py index 85a66328..7e556230 100644 --- a/Scripts/API_Tests/api_extracts.py +++ b/Scripts/API_Tests/api_extracts.py @@ -2,19 +2,21 @@ import requests import subprocess import gzip import urllib.request +import sys +import os import base64 # Variables of the needed elements -extract_id = "ENTER_EXTRACT_ID" -auth_token = "ENTER_AUTH_TOKEN" +extract_id = sys.argv[2] +# auth_token = sys.argv[3] base_url = "https://analytics.northpass.io/extracts" -encryption_key = "ENTER_ENCRYPTION_KEY" +encryption_key = sys.argv[3] current_dir = "./" # Set the API endpoint, authentication headers, and other parameters headers = { "accept": "application/json", - "X-Api-Key": "ENTER_API_KEY", + "X-Api-Key": sys.argv[1], }