Cleaned some files. Created DoorDash directory to test Braze Api calls.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<a class="np-learning-path-banner-image" style="width:30%; height:30%" onclick="downloadImage()">
|
||||
<img style="width:100%; height:100%"
|
||||
id="image"
|
||||
src="https://s3.amazonaws.com/schoolkeep-production/wysiwyg/10183441-2254-4b1e-a9f7-9549ca773257/20240214175234_Replenishment%20Badge.png">
|
||||
src="http://i5.walmartimages.com/dfw/63925b23-1956/k2-_7dff5685-ed72-4265-a87b-662a1db8a13a.v1.png">
|
||||
</a>
|
||||
<div class="np-learning-path-banner-content" style="align-items: center; display: flex; flex-direction: column; justify-content: center;">
|
||||
<h3 class="np-learning-path-banner-headline" style="color: #8F75DD; font-size: 25px; font-weight: 500; line-height: 25px; margin: 0 0 4px;">You earned it!</h3>
|
||||
@ -21,7 +21,7 @@
|
||||
<a class="np-learning-path-banner-image" style="width:30%; height:30%" onclick="downloadImage()">
|
||||
<img style="width:100%; height:100%"
|
||||
id="image"
|
||||
src="https://s3.amazonaws.com/schoolkeep-production/wysiwyg/10183441-2254-4b1e-a9f7-9549ca773257/20240604142406_Sales-Analysis.png">
|
||||
src="http://i5.walmartimages.com/dfw/63925b23-50a2/k2-_97d19d92-39dc-4c48-8329-20b4555e38d3.v1.png">
|
||||
</a>
|
||||
<div class="np-learning-path-banner-content" style="align-items: center; display: flex; flex-direction: column; justify-content: center;">
|
||||
<h3 class="np-learning-path-banner-headline" style="color: #8F75DD; font-size: 25px; font-weight: 500; line-height: 25px; margin: 0 0 4px;">You earned it!</h3>
|
||||
@ -33,6 +33,23 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% elsif learning_path.id == "33ef47b2-915d-4b57-b58e-dacfa34f5e3d" %}
|
||||
<div class="np-learning-path-completed-banner np-learning-path-banner" style="background-color: #DBD7EE">
|
||||
<a class="np-learning-path-banner-image" style="width:30%; height:30%" onclick="downloadImage()">
|
||||
<img style="width:100%; height:100%"
|
||||
id="image"
|
||||
src="https://i5.walmartimages.com/dfw/63925b23-2cc4/k2-_a4814e36-0e67-4fda-abdd-97feac089797.v1.png">
|
||||
</a>
|
||||
<div class="np-learning-path-banner-content" style="align-items: center; display: flex; flex-direction: column; justify-content: center;">
|
||||
<h3 class="np-learning-path-banner-headline" style="color: #8F75DD; font-size: 25px; font-weight: 500; line-height: 25px; margin: 0 0 4px;">You earned it!</h3>
|
||||
<p class="np-learning-path-banner-description" style="color: #1b3e4f; font-size: 20px; font-weight: 400; line-height: 20px; margin: 0 0 12px;">
|
||||
Congratulations, you're Walmart Luminate Customer and Shopper Insights Certified. Click the button below to add your accomplishment to LinkedIn!</p>
|
||||
<div class="np-learning-path-banner-actions">
|
||||
<a href="https://linkedin.com/profile/add/?startTask=Walmart%20Luminate%20Customer%20and%20Shopper%20Insights%20Certification&name=Walmart%20Luminate%20Customer%20and%20Shopper%20Insights%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com" class="np-learning-path-banner-action np-learning-path-banner-action--primary">
|
||||
Add to LinkedIn!</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="np-learning-path-completed-banner np-learning-path-banner">
|
||||
<img class="np-learning-path-banner-image" src="https://s3.amazonaws.com/static.northpass.com/images/stars-completed.svg"/>
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
SELECT ca.communication_id, p.email, ca.created_at, ca.delivered_at, ca.opened_at, ca.errored_at, ca.status FROM communication_activities ca
|
||||
JOIN schools s ON ca.school_id = s.id
|
||||
JOIN customers c ON s.customer_id = c.id
|
||||
JOIN people p ON ca.person_id = p.id
|
||||
WHERE s.id = 8285;
|
||||
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