Skip to content

Commit

Permalink
feat: final test ok
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr committed Sep 25, 2023
1 parent 6fe030a commit 45db0ff
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
2 changes: 0 additions & 2 deletions HubSpot/HubSpot_Create_company.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@
" \"name\": \"HubSpot\", \n",
" \"domain\": \"hubspot.com\",\n",
" \"city\": \"Cambridge\",\n",
" \"industry\": \"Technology\",\n",
" \"phone\": \"555-555-555\",\n",
" \"state\": \"Massachusetts\",\n",
" \"lifecyclestage\": \"51439524\"\n",
"}"
]
},
Expand Down
28 changes: 11 additions & 17 deletions HubSpot/HubSpot_Delete_company.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,9 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "f34eed5c-38ec-4589-91f6-1e091507d9b9",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-25T08:27:43.441763Z",
"iopub.status.busy": "2023-09-25T08:27:43.441376Z",
"iopub.status.idle": "2023-09-25T08:27:57.633315Z",
"shell.execute_reply": "2023-09-25T08:27:57.632549Z",
"shell.execute_reply.started": "2023-09-25T08:27:43.441667Z"
},
"papermill": {},
"tags": []
},
Expand Down Expand Up @@ -142,24 +135,17 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "6ab9199f-b054-459b-8bf0-bb23e941de67",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-25T08:27:57.637625Z",
"iopub.status.busy": "2023-09-25T08:27:57.637363Z",
"iopub.status.idle": "2023-09-25T08:28:01.747070Z",
"shell.execute_reply": "2023-09-25T08:28:01.746476Z",
"shell.execute_reply.started": "2023-09-25T08:27:57.637594Z"
},
"papermill": {},
"tags": []
},
"outputs": [],
"source": [
"# Mandatory\n",
"hs_access_token = naas.secret.get(\"HS_ACCESS_TOKEN\") or \"YOUR_HS_ACCESS_TOKEN\"\n",
"hubspot_id = \"715201\""
"hubspot_id = \"17450148694\""
]
},
{
Expand Down Expand Up @@ -231,6 +217,14 @@
"source": [
"obj"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "38adb765-f897-45d8-a937-52555f116183",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
20 changes: 11 additions & 9 deletions HubSpot/HubSpot_Update_company.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,9 @@
"outputs": [],
"source": [
"hs_access_token = naas.secret.get(\"HS_ACCESS_TOKEN\") or \"YOUR_HS_ACCESS_TOKEN\"\n",
"hubspot_id = \"715201\"\n",
"hubspot_id = \"17450148694\"\n",
"properties = {\n",
" \"name\": \"HubSpot\", \n",
" \"domain\": \"hubspot.com\",\n",
" \"city\": \"Cambridge\",\n",
" \"industry\": \"Technology\",\n",
" \"phone\": \"555-555-555\",\n",
" \"state\": \"Massachusetts\",\n",
" \"lifecyclestage\": \"51439524\"\n",
" \"name\": \"HubSpot (test)\",\n",
"} "
]
},
Expand Down Expand Up @@ -188,7 +182,7 @@
"outputs": [],
"source": [
"hs_properties = {\"properties\": properties}\n",
"obj = hubspot.connect(hs_access_token).companies.patch(hs_properties)"
"obj = hubspot.connect(hs_access_token).companies.patch(hubspot_id, hs_properties)"
]
},
{
Expand Down Expand Up @@ -225,6 +219,14 @@
"source": [
"obj"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9f31c2d2-ee78-48b2-bc80-b3c10f74da16",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 45db0ff

Please sign in to comment.