Skip to content

brightinteractive/hubspot-connection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Low-Level Connection for HubSpot API Clients

image

image

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.

Packages

No packages published

Languages

  • Python 100.0%