Ran and updated the API extract script for Williams-Sonoma.

This commit is contained in:
Norm Rasmussen
2025-02-27 15:31:23 -05:00
parent 011f47d102
commit 46efc9a422
3 changed files with 7 additions and 4 deletions

View File

@ -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],
}