Ran and updated the API extract script for Williams-Sonoma.
This commit is contained in:
@ -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],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user