2017 © Pedro Peláez
 

package laravel-drip

A Laravel wrapper for Drip's REST API v2.0

image

wouternl/laravel-drip

A Laravel wrapper for Drip's REST API v2.0

  • Tuesday, February 20, 2018
  • by wouterNL
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4,213 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 17 % Grown

The README.md

Drip API Laravel Wrapper

A Laravel wrapper for Drip's PHP wrapper for their REST API

Installation

1) Add the package as a dependency in your composer.json, (*1)

composer require wouternl/laravel-drip

2) publish the vendor config file, (*2)

php artisan vendor:publish --provider="wouterNL\Drip\DripPhpServiceProvider"

3) Add your Drip API token to the config file located in app/config/drip.php. I recommend you add this key to your project .env file instead of directly adding it to your config file. You can find your API token at the user settings page (https://www.getdrip.com/user/edit)., (*3)

DRIP_API_TOKEN=your token here

4) Add your Drip Account ID to the config file located in app/config/drip.php. I recommend you add this key to your project .env file instead of directly adding it to your config file., (*4)

DRIP_ACCOUNT_ID=Your Account ID here

Laravel <= 5.4

1) Add the following line to your providers array in your config/app.php file, (*5)

wouterNL\Drip\DripServiceProvider::class,

2) Add the following line to your aliases array in your config/app.php file, (*6)

'Drip' => wouterNL\Drip\Facades\DripFacade::class,

The following functions are available:

  • Drip::getCampaigns($params)
  • Drip::fetchCampaign($params)
  • Drip::getAccounts()
  • Drip::deleteSubscriber($params)
  • Drip::createOrUpdateSubscriber($params)
  • Drip::fetchSubscriber($params)
  • Drip::subscribeSubscriber($params)
  • Drip::unsubscribeSubscriber($params)
  • Drip::tagSubscriber($params)
  • Drip::untagSubscriber($params)
  • Drip::recordEvent($params)
  • Drip::makeRequest($url, $params = array(), $req_method = self::GET)
  • Drip::getRequestInfo()
  • Drip::getErrorMessage()
  • Drip::getErrorCode()

For more information about the REST API go to this link: https://www.getdrip.com/docs/rest-api, (*7)

The Versions

20/02 2018

dev-master

9999999-dev https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

20/02 2018

1.1.6

1.1.6.0 https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

19/09 2017

1.1.5

1.1.5.0 https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

25/04 2017

1.1.3

1.1.3.0 https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

25/04 2017

1.1.2

1.1.2.0 https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

25/04 2017

1.1.1

1.1.1.0 https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

25/04 2017

1.1.0

1.1.0.0 https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

25/04 2017

dev-develop

dev-develop https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires

 

25/04 2017

1.0

1.0.0.0 https://bitbucket.org/wouterNL/laravel-drip-php

A Laravel wrapper for Drip's REST API v2.0

  Sources   Download

MIT

The Requires