Package Data | |
---|---|
Maintainer Username: | jrshah |
Maintainer Contact: | shahjay25@gmail.com (jrshah) |
Package Create Date: | 2014-04-30 |
Package Last Update: | 2015-01-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:25:46 |
Package Statistics | |
---|---|
Total Downloads: | 2,729 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 4 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Its client api to access data from pipedrive
Include laravel4pipedrive as a dependency in composer.json:
"jrshah/laravel4pipedrive": "0.*"
Run composer install
to download the dependency.
Add the ServiceProvider to your provider array within app/config/app.php
:
'providers' => array(
'Jrshah\Laravel4pipedrive\Laravel4pipedriveServiceProvider'
)
Finally, publish the configuration files via php artisan config:publish jrshah/laravel4pipedrive
.
Once you have published the configuration files, you can set your API Token, Url and Version in app/config/packages/jrshah/laravel4pipedrive/config.php
:
<?php
return array(
'api_token' => 'your-pipedrive-token',
'api_url' => 'api-url-for-pipedrive',
'api_version' => 'pipedrive-api-version'
);
// get all deals
PipeDrive::request('GET','deals');
// update a deal
PipeDrive::request('PUT','deals',1,array('title'=>'update the title'));