Small notes. Couldn't figure out hubspot API....
This commit is contained in:
@ -289,4 +289,4 @@ CS is new "just off the ground" last year. So what they did last year is:
|
|||||||
* They want to increase engagement across all users - teachers and district people
|
* They want to increase engagement across all users - teachers and district people
|
||||||
* More importantly, teachers turnover far less than district employees. Having good relationships with teachers is super important.
|
* More importantly, teachers turnover far less than district employees. Having good relationships with teachers is super important.
|
||||||
|
|
||||||
[They](2023-07-27_they.md) had their first "scaled strategy" meeting this last week. They are interested in a viable repository of learning info and want to use Northpass. Hopefully by September 1st.
|
They had their first "scaled strategy" meeting this last week. They are interested in a viable repository of learning info and want to use Northpass. Hopefully by September 1st.
|
||||||
|
|||||||
@ -331,3 +331,11 @@ Feedback from Testing:
|
|||||||
* Highlighted Quiz answer: Buyer Intent Integrations, Sales Engagement Quiz
|
* Highlighted Quiz answer: Buyer Intent Integrations, Sales Engagement Quiz
|
||||||
DONE: Archive the Review Tracking & Marketing Content course and turn off script (Austin)
|
DONE: Archive the Review Tracking & Marketing Content course and turn off script (Austin)
|
||||||
DONE: Enable Footer & share screenshots with Erin for decision.
|
DONE: Enable Footer & share screenshots with Erin for decision.
|
||||||
|
|
||||||
|
## 07/31/2023
|
||||||
|
|
||||||
|
### Meeting with Erin
|
||||||
|
|
||||||
|
TODO: Find out where in roadmap learner transcripts are.
|
||||||
|
Verified outcome! 70 Cert completions before EOQ.
|
||||||
|
Katlin to be presenting in Chicago next week. Talk is internal and on August 10th.
|
||||||
|
|||||||
@ -256,7 +256,7 @@ DONE: Update the registration form on skuid skool. Alexa's request is below:
|
|||||||
|
|
||||||
### Certs for Skuad
|
### Certs for Skuad
|
||||||
|
|
||||||
TODO: Move the Skuid Recipe to Skuad
|
DONE: Move the Skuid Recipe to Skuad
|
||||||
TODO: Remove Points Node from Skuad Recipe
|
DONE: Remove Points Node from Skuad Recipe
|
||||||
TODO: Register button should immediately change the property to Registered.
|
DONE: Register button should immediately change the property to Registered.
|
||||||
TODO: Set Register button to webhook > email
|
DONE: Set Register button to webhook > email
|
||||||
|
|||||||
@ -18,14 +18,17 @@ def get_groups(apiKey):
|
|||||||
nextlink = data["links"]
|
nextlink = data["links"]
|
||||||
|
|
||||||
for response in data["data"]:
|
for response in data["data"]:
|
||||||
group_id = response["id"]
|
created_at = response["attributes"]["created_at"]
|
||||||
group_name = response["attributes"]["name"]
|
if created_at.startswith("2023"):
|
||||||
# print(group_name)
|
group_id = response["id"]
|
||||||
groups_dict = {
|
group_name = response["attributes"]["name"]
|
||||||
"id": group_id,
|
# print(group_name)
|
||||||
"name": group_name,
|
groups_dict = {
|
||||||
}
|
"id": group_id,
|
||||||
groups.append(groups_dict)
|
"name": group_name,
|
||||||
|
"created_at": created_at,
|
||||||
|
}
|
||||||
|
groups.append(groups_dict)
|
||||||
|
|
||||||
if "next" not in nextlink:
|
if "next" not in nextlink:
|
||||||
break
|
break
|
||||||
|
|||||||
@ -11,13 +11,32 @@ def no_client():
|
|||||||
"Authorization": "Bearer pat-na1-9f41f073-95e2-4eea-b0c9-3e9571a3998c",
|
"Authorization": "Bearer pat-na1-9f41f073-95e2-4eea-b0c9-3e9571a3998c",
|
||||||
}
|
}
|
||||||
# url = "https://api.hubapi.com/crm/v3/objects/companies?limit=10&archived=false"
|
# url = "https://api.hubapi.com/crm/v3/objects/companies?limit=10&archived=false"
|
||||||
# url = "https://api.hubapi.com/crm/v3/objects/notes?limit=100&archived=false&properties=hubspot_owner_id,hs_note_body"
|
# url = "https://api.hubapi.com/crm/v3/objects/notes/search?limit=100&archived=false&properties=hubspot_owner_id,hs_note_body"
|
||||||
|
url = "https://api.hubapi.com/crm/v3/objects/notes/search"
|
||||||
# url = f"https://api.hubapi.com/crm/v4/objects/companies/{COMPANYID}/associations/notes"
|
# url = f"https://api.hubapi.com/crm/v4/objects/companies/{COMPANYID}/associations/notes"
|
||||||
url = f"https://api.hubapi.com/engagements/v1/engagements/" # 36317682030"
|
# url = f"https://api.hubapi.com/engagements/v1/engagements/" # 36317682030"
|
||||||
# associated/COMPANY/{COMPANYID}"
|
# associated/COMPANY/{COMPANYID}"
|
||||||
|
|
||||||
response = requests.get(url, headers=headers)
|
data = {
|
||||||
|
"filterGroups": [
|
||||||
|
{
|
||||||
|
"filters": [
|
||||||
|
{
|
||||||
|
"propertyName": "hs_attachment_ids",
|
||||||
|
"operator": "NEQ",
|
||||||
|
# "value": "5951571334",
|
||||||
|
"value": "136317682030"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": ["hs_note_body"],
|
||||||
|
}
|
||||||
|
|
||||||
|
response = requests.post(url, json=data, headers=headers)
|
||||||
|
# print(response)
|
||||||
jsontext = response.json()
|
jsontext = response.json()
|
||||||
|
jsontext = json.dumps(jsontext)
|
||||||
print(jsontext)
|
print(jsontext)
|
||||||
# for item in jsontext['results']:
|
# for item in jsontext['results']:
|
||||||
# for props in item['properties']:
|
# for props in item['properties']:
|
||||||
|
|||||||
Reference in New Issue
Block a user