Python client for the Briq messaging platform API
Project description
Briq Python Client
A Python client library for the Briq messaging platform API.
Overview
The Briq Python client provides a simple and intuitive interface to interact with the Briq messaging platform API. It allows you to manage workspaces, campaigns, and send messages programmatically from your Python applications.
Installation
You can install the Briq client library using pip:
pip install briq
Requirements
- Python 3.7 or higher
- requests
- python-dotenv
Authentication
The Briq client requires an API key for authentication. You can provide your API key in several ways:
- Set it in your environment as
BRIQ_API_KEY - Store it in a
.envfile in your project directory - Pass it directly when initializing the client
Example .env file:
BRIQ_API_KEY=your_api_key_here
Quick Start
import briq
# Initialize the client (will load API key from environment or .env file)
client = briq.Client()
# Or set the API key manually
client.set_api_key("your_api_key_here")
# Create a workspace
workspace = client.workspace.create(
name="My Workspace",
description="A workspace for my messaging campaigns"
)
# List all workspaces
workspaces = client.workspace.list()
# Send an instant message
result = client.message.send_instant(
content="Hello from the Briq Python client!",
recipients=["255788344348"],
sender_id="my-sender-id"
)
Documentation
For detailed documentation and examples, please refer to the Usage Guide and API Reference.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file briq-0.1.0.tar.gz.
File metadata
- Download URL: briq-0.1.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8b46b6afdfe30c6e43e4810c788e494636067dbf2472a8886b989a9ba9f4369
|
|
| MD5 |
8b24bd314883dfb67a1573651e13ba3e
|
|
| BLAKE2b-256 |
55f6a6b6575b105a86cefa12b30a15c792890e50d4776d62a2139083619aa120
|
File details
Details for the file briq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: briq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
041072d615529c6bf49d2b7b722b5343e1c17fff84b2e4c78dba5edc7a745bb9
|
|
| MD5 |
6525fe9aedf290725dee00c636bbcbdd
|
|
| BLAKE2b-256 |
59ad3273dec553ac3eb36cf7772d93b51bce73d1a3333e57d5dc30ad0f1d9670
|