IsraelOrtuno / pipedrive

Complete Pipedrive API client for PHP
MIT License
166 stars 58 forks source link

itemSearch Endpoint Is Wrong #102

Closed MCKLtech closed 3 years ago

MCKLtech commented 3 years ago

In 2.10.0 the itemSearch endpoint is called as:

https://example.pipedrive.com/api/v1/itemSearches/?term=findMe

It should be:

https://example.pipedrive.com/api/v1/itemSearch/?term=findMe

i.e. Remove the 'es' from the end of itemSearches

Currently, if you use this endpoint you will be a Scope and URL mismatch error from Pipedrive

IsraelOrtuno commented 3 years ago

Could you submit a PR? Do not understand those **

MCKLtech commented 3 years ago

Sure, when I have time. But the quick fix is simply to find all instances of "itemSearches" and replace it with "itemSearch"

The plural 'es' at the end is incorrect meaning the wrong endpoint is called.