Lightweight abstraction layer for making requests to the HubSpot API
Project description
- Download:
- Sponsored by:
hubspot-connection provides a lightweight abstraction layer for making requests to the HubSpot API.
Here’s an example of how it can be used:
from hubspot.connection import APIKey
from hubspot.connection import PortalConnection
authentication_key = APIKey('HUBSPOT-API-KEY')
with PortalConnection(authentication_key, 'client') as connection:
contacts_data = connection.send_get_request('/contacts/v1/contacts/statistics')
print("Number of contacts: {}".format(contacts_data.get('contacts')))
This project is officially supported under Python 2.7 and Python 3.4, may work with Python 2.6.
Version 1.0 Release Candidate 1 (2014-06-23)
This is the first public release.
Version 1.0 Release Candidate 2 (2014-07-14)
Added content-type=’application/json’ for requests with body
Version 1.0 Release Candidate 3 (2014-09-15)
Made content-type mandatory only when content is expected
Version 1.0 Release Candidate 4 (2015-02-18)
Allowed for extra details in error responses from Hubspot
Version 1.0 Release Candidate 5 (2016-03-18)
Added Python 3.4 and 3.5 compatibility by: @jtprince
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for hubspot-connection-1.0rc8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa599c291a11b7f6a0adadfd122725bc081ec9949a748924051466941c1a52c2 |
|
MD5 | 7d998f78bc37a747f7f29daafe72a89b |
|
BLAKE2b-256 | b6e8dd2fb8e44984f9c65f520a1dc5318562e7ce5faa1e52d41a68ebab25ddac |