Skip to content

leads endpoint only allows json content #21

@wesselvdrest

Description

@wesselvdrest

see changelog

to fix this a POST_JSON method could be added to thee _request definition!:

...
elif method == "POST_JSON":
            uri = PIPEDRIVE_API_URL + endpoint + '?api_token=' + str(self.api_token)
            response, data = self.http.request(uri, method="POST", body=json.dumps(data), headers={'Content-Type': 'application/json'})
...

This is also the case for PATCH but I'm not using that method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions