Skip to content

Commit

Permalink
generateReadme: Refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 5, 2024
1 parent 097fbd3 commit 15f27cf
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 320 deletions.
48 changes: 24 additions & 24 deletions .github/push_templates_to_algolia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"id": "aa0e3e6f-1260-4452-8abf-7c084e26c8a4",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-29T09:10:28.808546Z",
"iopub.status.busy": "2024-07-29T09:10:28.808345Z",
"iopub.status.idle": "2024-07-29T09:10:28.885175Z",
"shell.execute_reply": "2024-07-29T09:10:28.884434Z"
"iopub.execute_input": "2024-08-05T12:43:51.496100Z",
"iopub.status.busy": "2024-08-05T12:43:51.495565Z",
"iopub.status.idle": "2024-08-05T12:43:51.569510Z",
"shell.execute_reply": "2024-08-05T12:43:51.568867Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -95,10 +95,10 @@
"id": "cfa97168-63eb-4e8c-89c3-0a5d26f47740",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-29T09:10:28.888296Z",
"iopub.status.busy": "2024-07-29T09:10:28.888004Z",
"iopub.status.idle": "2024-07-29T09:10:28.891543Z",
"shell.execute_reply": "2024-07-29T09:10:28.890932Z"
"iopub.execute_input": "2024-08-05T12:43:51.572972Z",
"iopub.status.busy": "2024-08-05T12:43:51.572526Z",
"iopub.status.idle": "2024-08-05T12:43:51.576003Z",
"shell.execute_reply": "2024-08-05T12:43:51.575375Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -141,10 +141,10 @@
"id": "7a9c86c2-931d-4113-abbc-31b3f517b6c4",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-29T09:10:28.894126Z",
"iopub.status.busy": "2024-07-29T09:10:28.893777Z",
"iopub.status.idle": "2024-07-29T09:10:28.978867Z",
"shell.execute_reply": "2024-07-29T09:10:28.978192Z"
"iopub.execute_input": "2024-08-05T12:43:51.578711Z",
"iopub.status.busy": "2024-08-05T12:43:51.578304Z",
"iopub.status.idle": "2024-08-05T12:43:51.662618Z",
"shell.execute_reply": "2024-08-05T12:43:51.661886Z"
},
"tags": []
},
Expand Down Expand Up @@ -178,10 +178,10 @@
"id": "c50e96b2-4403-413c-a99a-9243be0c0a04",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-29T09:10:28.981613Z",
"iopub.status.busy": "2024-07-29T09:10:28.981230Z",
"iopub.status.idle": "2024-07-29T09:10:30.597220Z",
"shell.execute_reply": "2024-07-29T09:10:30.596548Z"
"iopub.execute_input": "2024-08-05T12:43:51.665362Z",
"iopub.status.busy": "2024-08-05T12:43:51.664948Z",
"iopub.status.idle": "2024-08-05T12:43:52.920777Z",
"shell.execute_reply": "2024-08-05T12:43:52.920072Z"
},
"tags": []
},
Expand Down Expand Up @@ -230,10 +230,10 @@
"id": "da661ba3-fd15-4abc-bd4f-d13ae77b82b0",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-29T09:10:30.599954Z",
"iopub.status.busy": "2024-07-29T09:10:30.599550Z",
"iopub.status.idle": "2024-07-29T09:10:33.473151Z",
"shell.execute_reply": "2024-07-29T09:10:33.472454Z"
"iopub.execute_input": "2024-08-05T12:43:52.923510Z",
"iopub.status.busy": "2024-08-05T12:43:52.923254Z",
"iopub.status.idle": "2024-08-05T12:43:55.633134Z",
"shell.execute_reply": "2024-08-05T12:43:55.632460Z"
},
"tags": []
},
Expand All @@ -260,10 +260,10 @@
"id": "f1482a8f-4ce5-4e04-93c8-ddd883375d67",
"metadata": {
"execution": {
"iopub.execute_input": "2024-07-29T09:10:33.475858Z",
"iopub.status.busy": "2024-07-29T09:10:33.475614Z",
"iopub.status.idle": "2024-07-29T09:10:33.601472Z",
"shell.execute_reply": "2024-07-29T09:10:33.600764Z"
"iopub.execute_input": "2024-08-05T12:43:55.635898Z",
"iopub.status.busy": "2024-08-05T12:43:55.635519Z",
"iopub.status.idle": "2024-08-05T12:43:55.747919Z",
"shell.execute_reply": "2024-08-05T12:43:55.747251Z"
},
"tags": []
},
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4388,6 +4388,11 @@ We are committed to sharing templates and giving shout outs to the contributors
* [Create MT940 XML file](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SWIFT/SWIFT_Create_MT940_XML_file.ipynb)

## SendGrid
* [Add or Update Contacts](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SendGrid/SendGrid_Add_or_Update_Contacts.ipynb)
* [Get Contacts](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SendGrid/SendGrid_Get_Contacts.ipynb)
* [Get Lists](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SendGrid/SendGrid_Get_Lists.ipynb)
* [Get Single Sends](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SendGrid/SendGrid_Get_Single_Sends.ipynb)
* [Get Unsubscribes](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SendGrid/SendGrid_Get_Unsubscribes.ipynb)
* [Get all messages](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SendGrid/SendGrid_Get_all_messages.ipynb)
* [Send message](https://github.com/jupyter-naas/awesome-notebooks/blob/master/SendGrid/SendGrid_Send_message.ipynb)

Expand Down
60 changes: 7 additions & 53 deletions SendGrid/SendGrid_Add_or_Update_Contacts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"tags": []
},
"source": [
"# SendGrid - Add or Update Contacts"
"# SendGrid - Add or Update Contacts\n",
"<a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=SendGrid+-+Add+or+Update+Contacts:+Error+short+description\">Bug report</a>"
]
},
{
Expand Down Expand Up @@ -95,13 +96,6 @@
"execution_count": 1,
"id": "26c428b4-66f4-48a4-82db-ff24cdec1782",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:10.847920Z",
"iopub.status.busy": "2024-08-02T15:40:10.847478Z",
"iopub.status.idle": "2024-08-02T15:40:10.949533Z",
"shell.execute_reply": "2024-08-02T15:40:10.948928Z",
"shell.execute_reply.started": "2024-08-02T15:40:10.847832Z"
},
"papermill": {},
"tags": []
},
Expand All @@ -126,13 +120,6 @@
"execution_count": 2,
"id": "2de7b1bc-5ec9-4fa7-b89f-3f72f1b9a5e0",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:10.951151Z",
"iopub.status.busy": "2024-08-02T15:40:10.950884Z",
"iopub.status.idle": "2024-08-02T15:40:10.976974Z",
"shell.execute_reply": "2024-08-02T15:40:10.976430Z",
"shell.execute_reply.started": "2024-08-02T15:40:10.951089Z"
},
"papermill": {},
"tags": []
},
Expand Down Expand Up @@ -181,25 +168,10 @@
"execution_count": 3,
"id": "b5d42846-8db8-4bba-b6c6-d37af7b1c138",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:10.978302Z",
"iopub.status.busy": "2024-08-02T15:40:10.978067Z",
"iopub.status.idle": "2024-08-02T15:40:11.830979Z",
"shell.execute_reply": "2024-08-02T15:40:11.830299Z",
"shell.execute_reply.started": "2024-08-02T15:40:10.978272Z"
},
"papermill": {},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'job_id': '6dd4fd64-d82c-4441-b5c7-4b7f6f15d63c'}\n"
]
}
],
"outputs": [],
"source": [
"def create_contacts(api_key, contacts, list_ids):\n",
" headers = {\n",
Expand Down Expand Up @@ -244,28 +216,10 @@
"execution_count": 4,
"id": "7a3247b7-a627-41b0-89e9-2b7c39b0be47",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:11.832064Z",
"iopub.status.busy": "2024-08-02T15:40:11.831893Z",
"iopub.status.idle": "2024-08-02T15:40:11.842147Z",
"shell.execute_reply": "2024-08-02T15:40:11.841515Z",
"shell.execute_reply.started": "2024-08-02T15:40:11.832044Z"
},
"papermill": {},
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"{'job_id': '6dd4fd64-d82c-4441-b5c7-4b7f6f15d63c'}"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"results"
]
Expand All @@ -290,8 +244,8 @@
"version": "3.9.6"
},
"naas": {
"notebook_id": "d7e34a46dfdab62d55033522183e338b4bfd89523400494c9c14a7880471b1cb",
"notebook_path": "SendGrid/SendGrid_Get_all_messages.ipynb"
"notebook_id": "d32fcab971e65857691975f1e3128cb0068f05229b455971a1395ed8742a4e04",
"notebook_path": "SendGrid/SendGrid_Add_or_Update_Contacts.ipynb"
},
"papermill": {
"default_parameters": {},
Expand All @@ -302,4 +256,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
9 changes: 5 additions & 4 deletions SendGrid/SendGrid_Get_Contacts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"tags": []
},
"source": [
"# SendGrid - Get Contacts"
"# SendGrid - Get Contacts\n",
"<a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=SendGrid+-+Get+Contacts:+Error+short+description\">Bug report</a>"
]
},
{
Expand Down Expand Up @@ -245,8 +246,8 @@
"version": "3.9.6"
},
"naas": {
"notebook_id": "d7e34a46dfdab62d55033522183e338b4bfd89523400494c9c14a7880471b1cb",
"notebook_path": "SendGrid/SendGrid_Get_all_messages.ipynb"
"notebook_id": "13bb34af4740a0421743914a7bf7d0611c7207100f234b7324986712841940d7",
"notebook_path": "SendGrid/SendGrid_Get_Contacts.ipynb"
},
"papermill": {
"default_parameters": {},
Expand All @@ -257,4 +258,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
67 changes: 7 additions & 60 deletions SendGrid/SendGrid_Get_Lists.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"tags": []
},
"source": [
"# SendGrid - Get Lists"
"# SendGrid - Get Lists\n",
"<a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=SendGrid+-+Get+Lists:+Error+short+description\">Bug report</a>"
]
},
{
Expand Down Expand Up @@ -95,13 +96,6 @@
"execution_count": 1,
"id": "26c428b4-66f4-48a4-82db-ff24cdec1782",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:42.116209Z",
"iopub.status.busy": "2024-08-02T15:40:42.116013Z",
"iopub.status.idle": "2024-08-02T15:40:42.216352Z",
"shell.execute_reply": "2024-08-02T15:40:42.215588Z",
"shell.execute_reply.started": "2024-08-02T15:40:42.116162Z"
},
"papermill": {},
"tags": []
},
Expand All @@ -126,13 +120,6 @@
"execution_count": 2,
"id": "2de7b1bc-5ec9-4fa7-b89f-3f72f1b9a5e0",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:42.218093Z",
"iopub.status.busy": "2024-08-02T15:40:42.217618Z",
"iopub.status.idle": "2024-08-02T15:40:42.235392Z",
"shell.execute_reply": "2024-08-02T15:40:42.234865Z",
"shell.execute_reply.started": "2024-08-02T15:40:42.218060Z"
},
"papermill": {},
"tags": []
},
Expand Down Expand Up @@ -168,25 +155,10 @@
"execution_count": 3,
"id": "b5d42846-8db8-4bba-b6c6-d37af7b1c138",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:42.236507Z",
"iopub.status.busy": "2024-08-02T15:40:42.236285Z",
"iopub.status.idle": "2024-08-02T15:40:42.901666Z",
"shell.execute_reply": "2024-08-02T15:40:42.901030Z",
"shell.execute_reply.started": "2024-08-02T15:40:42.236477Z"
},
"papermill": {},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'result': [{'name': 'Naas Workspace', 'id': 'af26c293-cece-4768-b32b-be630bfdffa5', 'contact_count': 0, '_metadata': {'self': 'https://api.sendgrid.com/v3/marketing/lists/af26c293-cece-4768-b32b-be630bfdffa5'}}, {'name': 'Lab Users', 'id': 'f16beff7-8a18-4456-853c-b7cdecfee593', 'contact_count': 0, '_metadata': {'self': 'https://api.sendgrid.com/v3/marketing/lists/f16beff7-8a18-4456-853c-b7cdecfee593'}}], '_metadata': {'self': 'https://api.sendgrid.com/v3/marketing/lists?page_size=100&page_token=', 'count': 3}}\n"
]
}
],
"outputs": [],
"source": [
"def get_all_lists(api_key):\n",
" headers = {\n",
Expand Down Expand Up @@ -226,35 +198,10 @@
"execution_count": 4,
"id": "7a3247b7-a627-41b0-89e9-2b7c39b0be47",
"metadata": {
"execution": {
"iopub.execute_input": "2024-08-02T15:40:42.902687Z",
"iopub.status.busy": "2024-08-02T15:40:42.902469Z",
"iopub.status.idle": "2024-08-02T15:40:42.914828Z",
"shell.execute_reply": "2024-08-02T15:40:42.914262Z",
"shell.execute_reply.started": "2024-08-02T15:40:42.902652Z"
},
"papermill": {},
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"[{'name': 'Naas Workspace',\n",
" 'id': 'af26c293-cece-4768-b32b-be630bfdffa5',\n",
" 'contact_count': 0,\n",
" '_metadata': {'self': 'https://api.sendgrid.com/v3/marketing/lists/af26c293-cece-4768-b32b-be630bfdffa5'}},\n",
" {'name': 'Lab Users',\n",
" 'id': 'f16beff7-8a18-4456-853c-b7cdecfee593',\n",
" 'contact_count': 0,\n",
" '_metadata': {'self': 'https://api.sendgrid.com/v3/marketing/lists/f16beff7-8a18-4456-853c-b7cdecfee593'}}]"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"results.get(\"result\")"
]
Expand All @@ -279,8 +226,8 @@
"version": "3.9.6"
},
"naas": {
"notebook_id": "d7e34a46dfdab62d55033522183e338b4bfd89523400494c9c14a7880471b1cb",
"notebook_path": "SendGrid/SendGrid_Get_all_messages.ipynb"
"notebook_id": "e2344455b30dcddafa9b9d62709594529f8d36b98f31223b42e57356a36c2377",
"notebook_path": "SendGrid/SendGrid_Get_Lists.ipynb"
},
"papermill": {
"default_parameters": {},
Expand All @@ -291,4 +238,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Loading

0 comments on commit 15f27cf

Please sign in to comment.