Ran and updated the API extract script for Williams-Sonoma.
This commit is contained in:
1
Scripts/API_Tests/Client_API_Extract.csv.gz
Normal file
1
Scripts/API_Tests/Client_API_Extract.csv.gz
Normal file
@ -0,0 +1 @@
|
||||
<0E>˴<>M<EFBFBD><4D><EFBFBD>6<13>"<22>X5<58>'<27><>|<7C><>3]<5D><><EFBFBD><EFBFBD><EFBFBD>8F<38><46><EFBFBD>Z@<40><>CA<><41>eI<65><49>ҕ<EFBFBD>XDj<44><6A><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD>a<EFBFBD>n><3E><>I<EFBFBD>D<10>y0o<30>vxDܑ<44><DC91><EFBFBD>K#u<><75>r<EFBFBD>Ё)'>b<><62>䵎q<08><><EFBFBD>E}K<>sd<73>X<EFBFBD>#U<><06><>|<1A><>BJ<42>j9??5C<><43>1ׁx<D781>ˌ<EFBFBD><CB8C>b<0F>^<5E><><EFBFBD>B9 <18>y<EFBFBD>蹁m<E8B981>&<01>zϪ<7A>gƐ
|
||||
BIN
Scripts/API_Tests/Client_File.csv.gz
Normal file
BIN
Scripts/API_Tests/Client_File.csv.gz
Normal file
Binary file not shown.
@ -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