Skip to main content

Bandwidth Python API

Client library for the Bandwidth App Platform

Full Reference

dev.bandwidth.com/python-bandwidth

Requirements

Installation

pip install pybandwidth_v2

Usage

Client Initialization

from pybandwidth_v2.bandwidth_client import BandwidthAccountAPI, BandwidthMessagingAPI
messaging_api = BandwidthMessagingAPI('acc-account_id', 't-token', 's-secret', 'a-application_id')
account_api = BandwidthAccountAPI('acc-account_id', 'u-username', 'p-password')

Each of these code sample assumes that you have already initialized a client

Search phone number

numbers = account_api.search_available_numbers(area_code = '910', quantity = 3)
print(numbers[0]['number'])
## +19104440230

Send Text Message

message_id = messaging_api.send_message('+1234567980',
                              ['+1234567981'],
                              'SMS message')
print(message_id)
# m-messageId

Release History

0.0.2 (2019-09-12)

Initial release of SDK

Developer Info

Running tests

pip3 install nose

nosetests pybandwidth_v2

Download files

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

Source Distribution

pybandwidth_v2-0.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

pybandwidth_v2-0.0.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pybandwidth_v2-0.0.3.tar.gz.

File metadata

  • Download URL: pybandwidth_v2-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for pybandwidth_v2-0.0.3.tar.gz
Algorithm Hash digest
SHA256 62d608fb4874cb197d0b689371b7e783e9954d92484ae91974e3348a305767e6
MD5 85522512a45cd7378154e36c927dd6f8
BLAKE2b-256 7126c0ec92fa8281907dab4f3c0ba9bf524fc5958e8e6a17d5819686e73dfe3f

See more details on using hashes here.

File details

Details for the file pybandwidth_v2-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pybandwidth_v2-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for pybandwidth_v2-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef303cc66ce7a0ce2dcc7ad5db7bd1abef3a6e2a1026c109818305607a68d19a
MD5 b71489ff0f31784081c9c507e2012942
BLAKE2b-256 90621938ee826e06c92abbe6e67b8a50df00b983e73881c4709b51748382c4b7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page