Skip to main content

Lightweight abstraction layer for making requests to the HubSpot API

Project description

https://travis-ci.org/2degrees/hubspot-connection.png?branch=master https://coveralls.io/repos/2degrees/hubspot-connection/badge.png?branch=master
Download:

http://pypi.python.org/pypi/hubspot-connection

Sponsored by:

2degrees Limited.

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.

Project details


Download files

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

Source Distribution

hubspot-connection-1.0rc1.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

hubspot_connection-1.0rc1-py2.7.egg (8.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page