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
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)
Made _HUBSPOT_ERROR_RESPONSE_SCHEMA allow extra keys
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.0rc4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 344c3621f99195ca1c974a753798f2f11311fea5769ab3bad106399486be8bab |
|
MD5 | bad5e82620f5eacaa7c475f7e0e62241 |
|
BLAKE2b-256 | fd9289264064446e164b88a2561d7f2bdae2c5a15a65d431d0eb0aa047807fa5 |
Close
Hashes for hubspot_connection-1.0rc4-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0f39e268d6ec604aa7350c63fc58f2a82ac3c18615f1d7c60c21e3ce73e012f |
|
MD5 | b971f71eea0ca6060403e555eafbff6b |
|
BLAKE2b-256 | cbcebae337369546462d4b1ba4a2c9aed9368ac11d6ba2609399a972fa9f1831 |