Pythonic wrapper for HubSpot API methods in the Contacts, Contact Lists and Contact Properties APIs
Project description
Python Library to Manage Contacts via the HubSpot API
- Download:
- Sponsored by:
hubspot-contacts is a high-level, Pythonic wrapper for HubSpot API methods in the Contacts, Contact Lists and Contact Properties APIs.
Here’s an example of how it can be used:
>>> from hubspot.connection import APIKey, PortalConnection >>> from hubspot.contacts import Contact >>> from hubspot.contacts.lists import get_all_contacts >>> >>> authentication_key = APIKey("your key") >>> >>> with PortalConnection(authentication_key, "Your App Name") as connection: ... for contact in get_all_contacts(connection): ... print contact ... Contact(vid=1, email_address=u'foo@example.com', properties={u'lastname': u'Smith', u'company': u'ACME Ltd.', u'firstname': u'John', u'lastmodifieddate': datetime.datetime(2014, 5, 30, 15, 32, 7, 192000)}, related_contact_vids=[]) Contact(vid=2, email_address=u'bar@example.com', properties={u'lastname': u'Doe', u'company': u'Example Inc.', u'firstname': u'Alice', u'lastmodifieddate': datetime.datetime(2014, 5, 29, 15, 37, 52, 447000)}, related_contact_vids=[])
This project is officially supported under Python 2.7, but may work with Python 2.6 and Python 3.
hubspot-contacts depends on hubspot-connection, a separate library that abstracts the low-level communication with HubSpot and takes care of authentication, among other things.
Changelog
Version 1.0 Release Candidate 1 (2014-06-27)
Initial release.
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
hubspot-contacts-1.0rc1.tar.gz
(19.1 kB
view hashes)
Built Distribution
hubspot_contacts-1.0rc1-py2.7.egg
(29.4 kB
view hashes)
Close
Hashes for hubspot_contacts-1.0rc1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f20535fc1f8e7596201c107dace6a511b6e07ead0647463870b695a8dfbd14 |
|
MD5 | 78e79494efb54ec84802678ea520b5af |
|
BLAKE2b-256 | 8c33927a9796a6b71d92dcaab57beb1b593a5da4d67f5abdf12193c25b51f1d6 |