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.1.1.dev1.tar.gz (9.4 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.1.dev1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file briq-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: briq-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for briq-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 d057294ed783be1645a0d3073e6ff307eb2d8fad6a7b778f2716b75bae865bc6
MD5 c927fcc33687f82d08a40bf16e6d9ee3
BLAKE2b-256 f46f6a75b466f2ec37b51ae61d9dba347b5b496970cc7f47422df6eee54125c1

See more details on using hashes here.

File details

Details for the file briq-0.1.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: briq-0.1.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for briq-0.1.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd99cb935ba18bc398c653353d3c67091078be179bd07721ac3508d89e77d37b
MD5 c827f19410d3486f0e768680efc1f322
BLAKE2b-256 05ba1e4c6fc0dfddb6f6103fb87a652e4979f2040050659e5ad6fd2ebb4b64e9

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