Skip to main content

Python client for the Briq messaging platform API

Project description

Briq Python Client

Official 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:

  1. Set it in your environment as BRIQ_API_KEY
  2. Store it in a .env file in your project directory
  3. 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=["255***"],
    sender_id="my-sender-id"
)

Documentation

For detailed documentation and examples, please refer to the Official Usage Guide

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

briq-0.2.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

briq-0.2.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file briq-0.2.0.tar.gz.

File metadata

  • Download URL: briq-0.2.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for briq-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8d5bb7036831033a17c464af1a6d3fd856926de17dfe12f954ffcfffc7211417
MD5 5745a93091f34a0c194d637e0620296c
BLAKE2b-256 7b4d13cc5b5784c7170f6125eb1a487cd6ce983c2efa76c10fde83d2bf341a34

See more details on using hashes here.

File details

Details for the file briq-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: briq-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for briq-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3dd122d51e43dc27618be957b3c86db5675a5dcb26544b824d1d8d90559f98
MD5 e3ca301ff2951a74e77fd5dd63e9a4f6
BLAKE2b-256 c28a0d5c54a0b5f71382afc546d204e977f73b79304267a9adb5b8a8e9caf760

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page