Walmart screenshot script is finalized for Azure functions
This commit is contained in:
11
Scripts/API_Tests/fetch_api_prop_docs.py
Normal file
11
Scripts/API_Tests/fetch_api_prop_docs.py
Normal file
@ -0,0 +1,11 @@
|
||||
import requests
|
||||
import json
|
||||
import Apikeys
|
||||
|
||||
APIKEY = Apikeys.NORMSANDBOX
|
||||
DIRFILE = "properties.json"
|
||||
url = f'https://api.northpass.com/v2/properties/open_api?api_key={APIKEY}'
|
||||
response = requests.get(url).json()
|
||||
|
||||
with open (DIRFILE, 'w') as file:
|
||||
json.dump(response, file, indent=4)
|
||||
Reference in New Issue
Block a user