jscott1989 / python-pipedrive

Python API for interacting with the pipedrive.com API
MIT License
93 stars 43 forks source link

how to use with person/persons/:id/deals #8

Closed rafirosenberg closed 5 years ago

rafirosenberg commented 7 years ago

since your wrapper uses name to construct the end point how would you use an endpoint that requires an id and set it dynamically: for example if I were getting the id from a querystring and wanted to get deals associated with a person with that id using "GETList deals associated with a person/persons/:id/deals"

rafirosenberg commented 7 years ago

this is how i did it .. is there a better way? endpoint = 'persons/%s/deals' % person_id response = pipedrive._request(endpoint, {}, method="GET")