From 45db0ff6610afbb519fdf6aed60ba68e839c496e Mon Sep 17 00:00:00 2001 From: Florent Ravenel Date: Mon, 25 Sep 2023 14:35:23 +0200 Subject: [PATCH] feat: final test ok --- HubSpot/HubSpot_Create_company.ipynb | 2 -- HubSpot/HubSpot_Delete_company.ipynb | 28 +++++++++++----------------- HubSpot/HubSpot_Update_company.ipynb | 20 +++++++++++--------- 3 files changed, 22 insertions(+), 28 deletions(-) diff --git a/HubSpot/HubSpot_Create_company.ipynb b/HubSpot/HubSpot_Create_company.ipynb index c49b185d92..a6d4797293 100644 --- a/HubSpot/HubSpot_Create_company.ipynb +++ b/HubSpot/HubSpot_Create_company.ipynb @@ -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", "}" ] }, diff --git a/HubSpot/HubSpot_Delete_company.ipynb b/HubSpot/HubSpot_Delete_company.ipynb index a4f65dc907..d2fb8864cf 100644 --- a/HubSpot/HubSpot_Delete_company.ipynb +++ b/HubSpot/HubSpot_Delete_company.ipynb @@ -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": [] }, @@ -142,16 +135,9 @@ }, { "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": [] }, @@ -159,7 +145,7 @@ "source": [ "# Mandatory\n", "hs_access_token = naas.secret.get(\"HS_ACCESS_TOKEN\") or \"YOUR_HS_ACCESS_TOKEN\"\n", - "hubspot_id = \"715201\"" + "hubspot_id = \"17450148694\"" ] }, { @@ -231,6 +217,14 @@ "source": [ "obj" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "38adb765-f897-45d8-a937-52555f116183", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { diff --git a/HubSpot/HubSpot_Update_company.ipynb b/HubSpot/HubSpot_Update_company.ipynb index 0d92f1982a..835fa45a38 100644 --- a/HubSpot/HubSpot_Update_company.ipynb +++ b/HubSpot/HubSpot_Update_company.ipynb @@ -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", "} " ] }, @@ -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)" ] }, { @@ -225,6 +219,14 @@ "source": [ "obj" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "9f31c2d2-ee78-48b2-bc80-b3c10f74da16", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {