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, but may work with Python 2.6 and Python 3.
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
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
Built Distribution
Close
Hashes for hubspot-connection-1.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced184406a292c471b093dec3f9d540247753decd39f49e84f057ed940a86d90 |
|
MD5 | 5461dd051d88e222924152c23e8f1187 |
|
BLAKE2b-256 | 3f0dc3e39bc600c016638e327614763dff49a1b0c34858570ae8625c82f24acc |
Close
Hashes for hubspot_connection-1.0rc2-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77f54de932a5e7b6daca52f564015e008cd35760b51f0939306af556eccfed0 |
|
MD5 | 48a24557e3d1417afb5684c530272f91 |
|
BLAKE2b-256 | 6d84ce65dce29ac7860a83ec6fafe589494c1ba71dcd21c2b70141e949feb06f |