Skip to main content

An unofficial Python wrapper for the CallRail API

Project description

PyPI version info PyPI supported Python versions GitHub Actions build status Codecov coverage report Documentation Status

Python wrapper for the CallRail API.

Description

This library provides a Python intefrace for interacting with the Callrail API. It allows for CRUD operations on objects and resources within your CallRail account and to integrate with your own applications.

Installation

Install from PyPI using pip, a package manager for Python.

# Linux/macOS
python3 -m pip install pycallrail

# Windows
py -3 -m pip install pycallrail

Requirements & Dependencies

  • Python 3.6+

  • requests

  • ujson

  • python-dateutil

  • typeguard

Usage

import pycallrail.callrail as clrl

# init the api client

api = clrl.CallRail('your_api_key')

# list accounts associated with your api key
accounts = api.list_accounts(# optional kwargs, more info on supported kwargs at endpoint docs)

# list calls associated with your account
calls = accounts[0].list_calls(# optional kwargs, more info on supported kwargs at endpoint docs)

print(calls[0].id) # prints the id of the first call in the list

# >>> 123456789

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

pycallrail-0.9.0.2.tar.gz (26.9 kB view hashes)

Uploaded Source

Built Distribution

pycallrail-0.9.0.2-py3-none-any.whl (35.0 kB view hashes)

Uploaded Python 3

Supported by

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