aramboyajyan / drip-php-enhanced
An object-oriented PHP wrapper for Drip's REST API v2.0
v1.0.0
2020-06-08 22:42 UTC
Requires
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-09 16:12:05 UTC
README
This is a fork of the PHP library found here.
An object-oriented PHP wrapper for Drip's REST API v2.0
Installation
Run composer require dripemail/drip-php
Authentication
For private integrations, you may use your personal API Token (found
here) via the api_key
setting:
$client = new \Drip\Client("YOUR_API_KEY", "YOUR_ACCOUNT_ID");
For public integrations, pass in the user's OAuth token via the access_token
setting:
$client = new \Drip\Client("YOUR_ACCESS_TOKEN", "YOUR_ACCOUNT_ID");
Your account ID can be found here. Most API actions require an account ID, with the exception of methods like the "list accounts" endpoint.
PHP version support
We attempt to support versions of PHP that are supported upstream: http://php.net/supported-versions.php