Cleaned some files. Created DoorDash directory to test Braze Api calls.
This commit is contained in:
19
Scripts/DoorDash/braze_test.py
Normal file
19
Scripts/DoorDash/braze_test.py
Normal file
@ -0,0 +1,19 @@
|
||||
import requests
|
||||
|
||||
BRAPI = "da467de9-162a-47eb-9556-4609b543f005"
|
||||
HEADERS = {"Content-Type": "application/json", "Authorization": f"Bearer {BRAPI}"}
|
||||
URL = "https://rest.iad-06.braze.com"
|
||||
PAYLOAD = {
|
||||
"attributes": [
|
||||
{
|
||||
"email": "chris.wise@doordash.com",
|
||||
"gainsightce_attempt_number": 1,
|
||||
"gainsightce_course_progress": 75,
|
||||
"gainsightce_course_name": "Fake Test Course",
|
||||
"gainsightce_last_activity_completed": "DoorDash Is the Best!",
|
||||
}
|
||||
]
|
||||
}
|
||||
response = requests.post(f"{URL}/users/track", headers=HEADERS, json=PAYLOAD)
|
||||
print(response.text)
|
||||
print(response.status_code)
|
||||
Reference in New Issue
Block a user