jpetrucciani / hubspot3

python3.6+ hubspot client based on hapipy, but modified to use the newer endpoints and non-legacy python
MIT License
147 stars 73 forks source link

Ecommerce Bridge API #43

Closed W1ldPo1nter closed 5 years ago

W1ldPo1nter commented 5 years ago

This PR adds a client for a few (probably the most important) of the Ecommerce Bridge API endpoints.

It also contains additions/changes to a few other things:

The PR contains tests for all added Ecommerce Bridge endpoints. They can be run using tox -- hubspot3/test/test_ecommerce_bridge.py with a local tox setup (hence the introduction of {posargs} in tox.ini) or simply py.test hubspot3/test/test_ecommerce_bridge.py for a single Python version. The tests must be limited like this because the other tests are still problematic due to #40.

(black was already applied in between certain commits, but it certainly wouldn't hurt to run it again after merging.)

jpetrucciani commented 5 years ago

Oops, thanks for catching that! Sorry that I unintentionally caused that bug with the style commit - I should've been more careful with that. I also need to get the new tests added into the Travis-CI config, as well as fixed up with a new API key!

I'm also in the process of getting our own test API key that we can hopefully use for full on integration tests instead of using the demo key! I hope to get this merged soon and some tests fixed up today with the new test key

jpetrucciani commented 5 years ago

This is now included in the latest release 3.2.17, which is now live!

Thanks so much for your contributions! 😄