IsraelOrtuno / pipedrive

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

How can i create a new Deal ?? #6

Closed jagroop closed 8 years ago

jagroop commented 8 years ago

Hello sir, I am trying to create a new deal . but i am unable to find an appropriate method to add a new deal. That would be nice if you can share a piece of code. Thanks !

IsraelOrtuno commented 8 years ago

You just have to use the add method to any kind of resource which is able to "add" things:

$pipedrive->deals->add([...]);

And pass any data relevant to the deal (title and others). Check the pipedrive api docs to know what parameters you should pass when creating a deal.

jagroop commented 8 years ago

Thanks :+1: