diff --git a/Custom_Templates/customer_templates/Blacklane-Chauffeurs/auth_url_email.html.liquid b/Custom_Templates/customer_templates/Blacklane-Chauffeurs/auth_url_email.html.liquid new file mode 100644 index 00000000..9d495a15 --- /dev/null +++ b/Custom_Templates/customer_templates/Blacklane-Chauffeurs/auth_url_email.html.liquid @@ -0,0 +1,99 @@ +
+
+ {% include "header_minimal" %} +
+
+ {% form_authenticity_token %} +
+ {% t shared.welcome_to_school, school_name: current_school.name %} +
+
+ {% t .headline, key: current_school.course_vocabulary %} +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+
+ diff --git a/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md b/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md index 2a757f04..55fd564b 100644 --- a/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md +++ b/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md @@ -392,3 +392,20 @@ DONE: Get Sophia a marketing number on usage increase between embedded and non-e * In the past they took way too long * Numbers need to be in by December + +## 11/16/2023 + +### Understanding Communities/Education + +What is the most segmented vs integrated experience? + +Big Ideas App > Click Northpass > How do they then navigate to community from there? + +**They want to embed a single community/post/section into a single Activity!** + +Chris and Courtney are at the "prove it" phase. They are interested but unsure how it will work. We need a prototype. + +Other question from Sophia: + +* Can we print from the quiz as both instructor and student. + * If Learners put things in a course - like quiz submissions. diff --git a/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index 845ca646..ec88db57 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -18,3 +18,4 @@ ZENJOB = "LIXqtHXEqcXHyN0EtezngnpzA" DATASNIPPER = "098Odf9CIkk4aQA1lW7tsa9k8" CHUBB = "m6ZEBesXzpWx2vmp11rEHxrMY" BIRCHSTREET = "WpMV3jF4q9Om5FjUsrzZifduE" +G2 = "JRDpCGQ7vSRiva6t5OkWDr5eJ" diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc index adb9aef8..a64b7c7d 100644 Binary files a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc and b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc differ diff --git a/Scripts/API_Tests/add-pgaids.py b/Scripts/API_Tests/add-pgaids.py index 418a4e27..38495bb7 100644 --- a/Scripts/API_Tests/add-pgaids.py +++ b/Scripts/API_Tests/add-pgaids.py @@ -4,8 +4,8 @@ from pathlib import Path import Apikeys import os -basefile = "/Users/normrasmussen/Downloads/Mizuno_Completions.csv" -api_key = Apikeys.mizuno +basefile = "/Users/normrasmussen/Downloads/TS1099-coursecompletions.csv" +api_key = Apikeys.TALKSPACE_1099 uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]=" prop_url = "https://api.northpass.com/v2/properties/people/" headers = { @@ -24,9 +24,9 @@ def load_file(basefile): if os.path.isfile(basefile): print(f"File found! Importing {basefile}") for email in completions.itertuples(): - row_num = email[0] + row_num = email[1] row_dict = {"row_num": row_num} - email = email[3] + email = email[4] url = uuid_url + f"{email}" response = requests.get(url, headers=headers) if response.status_code == 200: @@ -35,23 +35,22 @@ def load_file(basefile): url2 = prop_url + f"{uuid}" response = requests.get(url2, headers=headers) data = response.json() - pgaid = (data["data"] - ["attributes"]["properties"]["account_number"]) - row_dict["pgaid"] = pgaid + userid = data["data"]["attributes"]["properties"]["user_id"] + row_dict["userid"] = userid dict_list.append(row_dict) print("No errors! Passing along the dictionary!") except KeyError as e: - print(e) + print(f"{e} and the rest") finally: for info in dict_list: row = info["row_num"] - pid = info["pgaid"] - completions.loc[completions.index[row], "PGA ID"] = pid - completions = completions[completions["PGA ID"] != "0"] + pid = info["userid"] + completions.loc[completions.index[row], "userid"] = pid + completions = completions[completions["userid"] != "0"] # completions = completions.iloc[:, 0:] print(completions) completions.to_csv( - "/Users/normrasmussen/Downloads/Mizuno-10.23-Completions_with_PGAIDs.csv", + "/Users/normrasmussen/Downloads/Talkspace1099-Completions-All-IDS.csv", index=False, ) diff --git a/Scripts/send-grid-request.py b/Scripts/send-grid-request.py new file mode 100644 index 00000000..b57bcfaf --- /dev/null +++ b/Scripts/send-grid-request.py @@ -0,0 +1,15 @@ +import sys +sys.path.insert(0, "./API_Tests/") +import requests +import Apikeys +apikey = Apikeys.G2 + +url = "https://api.northpass.com/v2/email_domains" +header = { "x-api-key": apikey, "Content-Type": "application/json" } +payload = {"domain": "g2.com", "custom_dkim_selector": "n"} + +response = requests.post(url, headers=header, json=payload) + +print(response.json()) +print(response.text) +print(response.status_code)