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

Not found response on create or update pipeline #83

Closed hamcher closed 4 years ago

hamcher commented 4 years ago

use plural pipelines instead of pipeline in the url of create and update methods according to the description of hubspot

https://api.hubapi.com/crm-pipelines/v1/pipelines/deals?hapikey=demo

    def create(self, object_type, data=None, **options):
        data = data or {}
        return self._call(
            "pipeline/{}".format(object_type), data=data, method="POST", **options
        )

    def update(self, object_type, key, data=None, **options):
        data = data or {}
        return self._call(
            "pipeline/{}/{}".format(object_type, key),
            data=data,
            method="PUT",
            **options
        )
jpetrucciani commented 4 years ago

Hmm, interesting - I'll see if I can get that updated here soon.

jpetrucciani commented 4 years ago

This fix is now live on pip as version 3.2.42

Thanks again for bringing this to my attention! 😄