IsraelOrtuno / pipedrive

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

Get activities from a deal #18

Closed bynelus closed 7 years ago

bynelus commented 7 years ago

Thank you for providing a really simple to use library for Pipedrive.

I'm struggling to get the activities from a deal (according to the docs: https://developers.pipedrive.com/docs/api/v1), I tried it this way: Pipedrive::deals()->find($dealId)->activities(); But that doesn't work.

Is it possible and how should I do this?

IsraelOrtuno commented 7 years ago

It is a different method. Pipedrive does not include the activities in the response. You can use:

Pipedrive::deals()->activities($dealId);