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
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.0rc3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6895d929ab484d2ddc86941aa570de6f3f9cff9e9873e74b6453fecd4d00a192 |
|
MD5 | 04acb214d9d802a6c702483d7792a9fc |
|
BLAKE2b-256 | 7f894855748cfc2cc8b5c8e53458216b6f7d99445571b221c6ec1a83d13a50ea |
Close
Hashes for hubspot_connection-1.0rc3-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe6e626b5a62e534067dcbbdf61ef2eb9520256fd01e5f2cd51046359be317d1 |
|
MD5 | 13aba6fcd36a901b0705db47e2e72ff9 |
|
BLAKE2b-256 | 4d528bfa2e964edcf9a7724e9a2f3c8aadaad4cd25a2d2162068115c61967500 |