Added Talkspace templates, made some changes to Skuid's script and started the Blacklane script

This commit is contained in:
Norm Rasmussen
2022-11-28 19:50:30 -05:00
parent f77086d19d
commit 54b2817095
116 changed files with 735 additions and 13 deletions

View File

@ -0,0 +1,44 @@
import requests
apiKey = "L93lGMSugtpmsBhSAkx3tei6B"
def getallUuid(apiKey):
x = 0
uuid = []
while True:
x += 1
url = f"https://api.northpass.com/v2/people?page={x}"
headers = {
"accept": "application/json",
"X-Api-Key": apiKey
}
response = requests.get(url, headers=headers)
jsonResponse = response.json()
for id in jsonResponse["data"]:
user = id["id"]
uuid.append(user)
if jsonResponse["links"]["next"] == "":
break
print(uuid)
def addtoGroup(apiKey, uuid):
for x in uuid:
url = f"https://api.northpass.com/v2/people/{x}/relationships/groups"
payload = {"data": [
{
"type": "membership-groups",
"id": "GROUP ID"
}]}
headers = {
"accept": "application/json",
"content-type": "application/json",
"X-Api-Key": apiKey
}
response = requests.post(url, json=payload, headers=headers)
jsonResponse = response.json()
print(jsonResponse)
if __name__ == "__main__":
getallUuid(apiKey)

View File

@ -1,6 +1,5 @@
import requests
import sys
import http
import pandas as pd
# Enter your API Key between the quotation marks.

View File

@ -2,6 +2,39 @@ from collections import Counter
import pandas as pd
basecsv = "/Users/normrasmussen/Documents/Northpass/Scripts/Skuid_LPs/skuid_05lp.csv"
lpcsv = "/Users/normrasmussen/Documents/Northpass/Scripts/Skuid_LPs/skuidlps.csv"
'''
Example multivalue dictionary
dict = {key1: [value1, value2, value3, value4],
key2: [value5, value6, value 7],
}
So this could be used for each learning path. In other words:
learning_paths = {'01:Skuid Ethos' : ["Congratulations", "Create", "Skuid Resources"]} etc etc
Ideally, we will add Alexa's "levels" in this dictionary as well. Could we do:
learning_paths = {'Level_1': [{'01:Skuid Ethos' : ["Congratulations", "Create", "Skuid Resources"]},
{'02:Composer' : ["Overview", "Get Started with Composer", "Manage Pages"}]
{'03:Design System Studio' : ["Get Started with Design Systems", etc etc]},
'Level_2': [{'10 - Data' : ["Tips to Optimize", "Smarter Conditions"]},
{'11-Components': ["Battle", "Engage"]},
]
}
How to create this by automation?
'''
def lpLevels(lpcsv):
levels = pd.read_csv(
lpcsv,
index_col=False,
)
print(levels.Level.unique()) # Print only unique values from the Level column
def mainFunc(basecsv):
readData = pd.read_csv(
@ -27,5 +60,6 @@ def mainFunc(basecsv):
# finalNames.append(name)
if __name__ == "__main__":
mainFunc(basecsv)
#mainFunc(basecsv)
lpLevels(lpcsv)

View File

@ -0,0 +1,43 @@
Level,LP,Course Name
Level 1,01: Skuid Ethos - Level 1,Congratulations! You've been accepted to Skuid Skool
Level 1,01: Skuid Ethos - Level 1,Create Your Own Dev Org Environment/Install Skuid - Level 1
Level 1,01: Skuid Ethos - Level 1,Skuid Resources
Level 1,02: Composer - Level 1,Overview of Skuid Central and Tabs - Level 1
Level 1,02: Composer - Level 1,Get Started with the Composer - Level 1
Level 1,02: Composer - Level 1,Manage Pages - Level 1
Level 1,03: Design System Studio - Level 1,Get Started with Design Systems - Level 1
Level 1,03: Design System Studio - Level 1,Configure Design Systems - Level 1
Level 1,03: Design System Studio - Level 1,Apply Design Systems to Pages - Level 1
Level 1,03: Design System Studio - Level 1,Manage Design Systems - Level 1
Level 1,04: Data Sources - Level 1,Get Started with Data Sources - Level 1
Level 1,05: Models - Level 1,Get Started with Models - Level 1
Level 1,05: Models - Level 1,Configure Model Fields - Level 1
Level 1,05: Models - Level 1,Configure Model Conditions - Level 1
Level 1,05: Models - Level 1,Configure Model Actions - Level 1
Level 1,05: Models - Level 1,Manage Models - Level 1
Level 1,05: Models - Level 1,Intro to UI Only Fields - Level 1
Level 1,06: Components - Level 1,Get Started with Components - Level 1
Level 1,06: Components - Level 1,Use Components in the Composer - Level 1
Level 1,06: Components - Level 1,Working with Tables - Level 1
Level 1,06: Components - Level 1,Configure Basic Components - Level 1
Level 1,06: Components - Level 1,Working with Forms - Level 1
Level 1,07: Display Logic - Level 1,Get Started with Display Logic - Level 1
Level 1,07: Display Logic - Level 1,Configure Display Logic Conditions - Level 1
Level 1,07: Display Logic - Level 1,Display Logic Considerations - Level 1
Level 1,08: Action Framework - Level 1,Get Started with the Action Framework - Level 1
Level 1,08: Action Framework - Level 1,Configure Actions in Skuid - Level 1
Level 1,08: Action Framework - Level 1,Execute an Action Sequence - Level 1
Level 1,09: Deployment - Level 1,Deploying Skuid - Level 1
Level 2,10 - Data: Level 2,Tips to Optimize Performance with Models - Level 2
Level 2,10 - Data: Level 2,"Smarter Conditions, Smarter Data - Level 2"
Level 2,10 - Data: Level 2,Use Fields to Improve Data Quality and UX - Level 2
Level 2,11 - Components: Level 2,Battle of the Components: Deck vs. List vs. Table - Level 2
Level 2,11 - Components: Level 2,Engage Users with Images - Level 2
Level 2,11 - Components: Level 2,Get Started with Data Visualizations - Level 2
Level 2,12 - App Architecture: Level 2,"Page Relationships: Principal, Dependent, and Include - Level 2"
Level 2,12 - App Architecture: Level 2,"Give Users What They Need: Drawers, Modals, and Console Views - Level 2"
Level 2,12 - App Architecture: Level 2,5 Tips to Build Better Wizards and Process Flows - Level 2
Level 2,13 - Logic: Level 2,Get Started with Filters - Level 2
Level 2,13 - Logic: Level 2,The Magical World of Merge Syntax - Level 2
Level 2,13 - Logic: Level 2,Action Framework Power Features - Level 2
Level 2,13 - Logic: Level 2,Practical Uses for UI-Only Fields - Level 2
1 Level LP Course Name
2 Level 1 01: Skuid Ethos - Level 1 Congratulations! You've been accepted to Skuid Skool
3 Level 1 01: Skuid Ethos - Level 1 Create Your Own Dev Org Environment/Install Skuid - Level 1
4 Level 1 01: Skuid Ethos - Level 1 Skuid Resources
5 Level 1 02: Composer - Level 1 Overview of Skuid Central and Tabs - Level 1
6 Level 1 02: Composer - Level 1 Get Started with the Composer - Level 1
7 Level 1 02: Composer - Level 1 Manage Pages - Level 1
8 Level 1 03: Design System Studio - Level 1 Get Started with Design Systems - Level 1
9 Level 1 03: Design System Studio - Level 1 Configure Design Systems - Level 1
10 Level 1 03: Design System Studio - Level 1 Apply Design Systems to Pages - Level 1
11 Level 1 03: Design System Studio - Level 1 Manage Design Systems - Level 1
12 Level 1 04: Data Sources - Level 1 Get Started with Data Sources - Level 1
13 Level 1 05: Models - Level 1 Get Started with Models - Level 1
14 Level 1 05: Models - Level 1 Configure Model Fields - Level 1
15 Level 1 05: Models - Level 1 Configure Model Conditions - Level 1
16 Level 1 05: Models - Level 1 Configure Model Actions - Level 1
17 Level 1 05: Models - Level 1 Manage Models - Level 1
18 Level 1 05: Models - Level 1 Intro to UI Only Fields - Level 1
19 Level 1 06: Components - Level 1 Get Started with Components - Level 1
20 Level 1 06: Components - Level 1 Use Components in the Composer - Level 1
21 Level 1 06: Components - Level 1 Working with Tables - Level 1
22 Level 1 06: Components - Level 1 Configure Basic Components - Level 1
23 Level 1 06: Components - Level 1 Working with Forms - Level 1
24 Level 1 07: Display Logic - Level 1 Get Started with Display Logic - Level 1
25 Level 1 07: Display Logic - Level 1 Configure Display Logic Conditions - Level 1
26 Level 1 07: Display Logic - Level 1 Display Logic Considerations - Level 1
27 Level 1 08: Action Framework - Level 1 Get Started with the Action Framework - Level 1
28 Level 1 08: Action Framework - Level 1 Configure Actions in Skuid - Level 1
29 Level 1 08: Action Framework - Level 1 Execute an Action Sequence - Level 1
30 Level 1 09: Deployment - Level 1 Deploying Skuid - Level 1
31 Level 2 10 - Data: Level 2 Tips to Optimize Performance with Models - Level 2
32 Level 2 10 - Data: Level 2 Smarter Conditions, Smarter Data - Level 2
33 Level 2 10 - Data: Level 2 Use Fields to Improve Data Quality and UX - Level 2
34 Level 2 11 - Components: Level 2 Battle of the Components: Deck vs. List vs. Table - Level 2
35 Level 2 11 - Components: Level 2 Engage Users with Images - Level 2
36 Level 2 11 - Components: Level 2 Get Started with Data Visualizations - Level 2
37 Level 2 12 - App Architecture: Level 2 Page Relationships: Principal, Dependent, and Include - Level 2
38 Level 2 12 - App Architecture: Level 2 Give Users What They Need: Drawers, Modals, and Console Views - Level 2
39 Level 2 12 - App Architecture: Level 2 5 Tips to Build Better Wizards and Process Flows - Level 2
40 Level 2 13 - Logic: Level 2 Get Started with Filters - Level 2
41 Level 2 13 - Logic: Level 2 The Magical World of Merge Syntax - Level 2
42 Level 2 13 - Logic: Level 2 Action Framework Power Features - Level 2
43 Level 2 13 - Logic: Level 2 Practical Uses for UI-Only Fields - Level 2