Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2degrees/hubspot-connection
Low-Level Connection for HubSpot API Clients
https://github.com/2degrees/hubspot-connection
Last synced: about 14 hours ago
JSON representation
Low-Level Connection for HubSpot API Clients
- Host: GitHub
- URL: https://github.com/2degrees/hubspot-connection
- Owner: 2degrees
- License: bsd-3-clause
- Created: 2014-04-07T10:51:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-11T09:37:55.000Z (over 1 year ago)
- Last Synced: 2024-08-03T16:09:34.953Z (4 months ago)
- Language: Python
- Homepage: http://pythonhosted.org/hubspot-connection/
- Size: 148 KB
- Stars: 7
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Low-Level Connection for HubSpot API Clients
============================================.. image:: https://travis-ci.org/2degrees/hubspot-connection.png?branch=master
:target: https://travis-ci.org/2degrees/hubspot-connection
:align: right.. image:: https://coveralls.io/repos/2degrees/hubspot-connection/badge.png?branch=master
:target: https://coveralls.io/r/2degrees/hubspot-connection?branch=master
:align: right:Download: ``_
: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:
.. code-block:: python
from hubspot.connection import APIKey
from hubspot.connection import PortalConnectionauthentication_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 and Python 3.4, may work with Python 2.6.