Skip to main content

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:

  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=["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


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.1.0.tar.gz (9.5 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.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for briq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f8b46b6afdfe30c6e43e4810c788e494636067dbf2472a8886b989a9ba9f4369
MD5 8b24bd314883dfb67a1573651e13ba3e
BLAKE2b-256 55f6a6b6575b105a86cefa12b30a15c792890e50d4776d62a2139083619aa120

See more details on using hashes here.

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

Hashes for briq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 041072d615529c6bf49d2b7b722b5343e1c17fff84b2e4c78dba5edc7a745bb9
MD5 6525fe9aedf290725dee00c636bbcbdd
BLAKE2b-256 59ad3273dec553ac3eb36cf7772d93b51bce73d1a3333e57d5dc30ad0f1d9670

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