A python wrapper around HubSpot's APIs. Docs for this wrapper can be found here.
General API reference documentation can be found here.
A Python wrapper for the HubSpot APIs #hubspot-open-source
Home Page: https://github.com/HubSpot/hapipy/wiki/hapipy-documentation
License: Apache License 2.0
test_parallel_get_campaigns has been failing for a long time... BaseClient used to have a mixins() method (i assme for injecting mixins), but now it's part of the constructor:
def __init__(self, api_key=None, timeout=10, mixins=[], access_token=None, refresh_token=None, client_id=None, **extra_options):
we need to update the test to pass PyCurlMixin to the constructor instead of using self.mixins()
Is this ever going to get updated? The Leads API for example was deprecated in December last year, and now there's no Python client for the Contacts API?
It seems like this package has been abandoned. Does anyone have an alternative? Or is everyone just writing their own custom wrappers to work with the HubSpot API from Python?
auth_checker checks access token by getting /events/v1/events. But this code for scope like 'leads_rw+offline' will return 401. So, may be better to make API call for checking token parametуrized.
When base.py
tries to refresh a token upon a 401 error, a ValueError
is raised because the syntax for log message format is incorrect.
Line 181 should read:
self.log.info('Retrying with new token %s' % (self.access_token))
not
self.log.info('Retrying with new token %' % (self.access_token))
The stack trace for the error is:
Traceback (most recent call last):
<Our code elided>
File "/Users/dylanl/Code/core/core-env/src/hapipy-master/hapi/workflows.py", line 34, in enroll_contact
File "/Users/dylanl/Code/core/core-env/src/hapipy-master/hapi/base.py", line 209, in _call
result = self._call_raw(subpath, params=params, method=method, data=data, doseq=doseq, query=query, retried=False, **options)
File "/Users/dylanl/Code/core/core-env/src/hapipy-master/hapi/base.py", line 182, in _call_raw
self.log.info('Retrying with new token %' % (self.access_token))
ValueError: incomplete format
I can create a PR if needed. My fork has a few other changes that aren't ready to merge and the change is so trivial I figured a PR would be overkill.
I tested with client.get_leads
but seems 404 response is printed.
Also the here the docs are using Lead
& Prospect
while api docs are using Contacts
http://developers.hubspot.com/docs/crm-integration-guide/contacts
Please update the documentation for the python library status thanks
The utils.auth_checker method is calling /events/v1/events, but that endpoint no longer exists and returns a 404.
Hey guys, is there any chance you will support py3k in a near future? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.