A Python library for the Basecamp 3 chatbot API
Project description
basecamp-chatbot
Python library for Basecamp 3 Chatbot API
Installing / Supported Versions
This library is available on PyPI:
$ pip install basecamp_chatbot
The library officially supports Python 3.8+.
Command line usage
You can post a string or the contents of a file to your chatbot with the following commands:
$ bc_post_from_str <chatbot_url> <message>
$ bc_post_from_file <chatbot_url> <filepath>
Creating a chatbot
You must be an administrator of your Basecamp group in order to create a chatbot.
- Open the Basecamp chat you want to add a bot to.
- Click the options button (marked with an ellipsis) at the top right of the chat.
- Click on "Configure chatbots".
- Click "Add a new chatbot".
- You'll be asked to name the chatbot and optionally upload an avatar image.
Getting the chatbot URL
In the list of available chatbots, click on the text that says "Send line from this integration to Chat...".
This will display an example curl command for posting a new message to the chat for this bot. Copy the URL in the command. This is what you'll pass to the Chatbot initializer and the command line tools.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file basecamp_chatbot-2024.8.22.4.tar.gz
.
File metadata
- Download URL: basecamp_chatbot-2024.8.22.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f51217eec2cf1461fbd96fbb3b04e3b1901cc1a766935c9d90f96aa93c109fd |
|
MD5 | a7701d00402c0a898127ef7a1c107aac |
|
BLAKE2b-256 | 7b7365babf9159f2fe29e96bdfbf4c2a94acf39ddf80265a84d60628697cc0f4 |
File details
Details for the file basecamp_chatbot-2024.8.22.4-py3-none-any.whl
.
File metadata
- Download URL: basecamp_chatbot-2024.8.22.4-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf3406a7ab9e53b6f452b2dfc3f22c8caa4931ef4ccaf47167d4e593ac37054 |
|
MD5 | 5ca5a152fe296b8cb45f97e1a47a77e5 |
|
BLAKE2b-256 | a443bd297a0e030ccbea6376bcebe0f38763a53630e2c1a51af7c3037cbecaf0 |