From 217fd66576fdc6d80ca2079bcee0e08e28899f8f Mon Sep 17 00:00:00 2001 From: Florent Ravenel Date: Thu, 5 Oct 2023 19:05:41 +0200 Subject: [PATCH] feat(Buffer): Add Create draft --- Buffer/Buffer_Create_draft.ipynb | 164 +++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 Buffer/Buffer_Create_draft.ipynb diff --git a/Buffer/Buffer_Create_draft.ipynb b/Buffer/Buffer_Create_draft.ipynb new file mode 100644 index 0000000000..cbcfb34454 --- /dev/null +++ b/Buffer/Buffer_Create_draft.ipynb @@ -0,0 +1,164 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "e56e2551-58d5-4923-a40d-ea2915c79024", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "\"Naas\"" + ] + }, + { + "cell_type": "markdown", + "id": "b019ff4f-b1c7-4472-b343-0dc61887e543", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "# Buffer - Create draft" + ] + }, + { + "cell_type": "markdown", + "id": "8cf7687d-ed89-4005-a767-20a3f2de4b2d", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "**Tags:** #buffer #draft #create #socialmedia #socialnetworks #socialmediaplatforms" + ] + }, + { + "cell_type": "markdown", + "id": "95dcc57b-0b99-46e5-9c70-9693d8ba7ce9", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "**Author:** [Firstname Lastname]()" + ] + }, + { + "cell_type": "markdown", + "id": "e9c06077-467c-45af-82e3-d011bb90f82d", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "**Last update:** 2023-10-05 (Created: 2023-10-05)" + ] + }, + { + "cell_type": "markdown", + "id": "eb508361-e1d1-4bea-a8ba-2e15c436699b", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "**Description:** This notebook creates a draft for Buffer, a social media platform. It is usefull for organizations to quickly create a post for their social media accounts." + ] + }, + { + "cell_type": "markdown", + "id": "6610772d-7f3e-4a6e-9ebe-c5aefb526d58", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "**References:**\n- [Buffer Documentation](https://buffer.com/developers/api/overview)\n- [Buffer API](https://buffer.com/developers/api/overview)" + ] + }, + { + "cell_type": "markdown", + "id": "1fe9adf6-25ef-49c9-82a7-ac2838d609c6", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "## Input" + ] + }, + { + "cell_type": "markdown", + "id": "757da3e9-1905-40d1-b9ca-a236e57e06f9", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "### Import libraries" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "568f05a0-45e4-46a0-a3a8-624154b174f5", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": "import requests\nimport json", + "outputs": [] + }, + { + "cell_type": "markdown", + "id": "9a7282e2-c438-4429-813c-707a13b33361", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": [ + "### Setup variables\n- **access_token**: Access token for Buffer API. [Link to procedure](https://buffer.com/developers/api/overview)\n- **profile_id**: Profile ID of the account where the post will be created. [Link to procedure](https://buffer.com/developers/api/overview)\n- **text**: Text of the post." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f30d40d1-3821-41c5-8012-7e18f26c7749", + "metadata": { + "papermill": {}, + "tags": [] + }, + "source": "access_token = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX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XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", + "outputs": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.6" + }, + "widgets": { + "application/vnd.jupyter.widget-state+json": { + "state": {}, + "version_major": 2, + "version_minor": 0 + } + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} \ No newline at end of file