GithubHelp home page GithubHelp logo

petejacobson / laravel-drip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wouternl/laravel-drip

0.0 0.0 0.0 36 KB

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

License: MIT License

PHP 100.00%

laravel-drip's Introduction

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
composer require wouternl/laravel-drip
  1. publish the vendor config file
php artisan vendor:publish --provider="wouterNL\Drip\DripPhpServiceProvider"
  1. 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).
DRIP_API_TOKEN=your token here
  1. 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.
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
wouterNL\Drip\DripServiceProvider::class,
  1. Add the following line to your aliases array in your config/app.php file
'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

laravel-drip's People

Contributors

wouternl avatar jkudish avatar sjongejan avatar alexmac7 avatar alzpk avatar necrojan avatar marijnbent avatar nicodevs avatar petejacobson avatar peterjaap avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.