CalderaWP/edd-api-client

Name: edd-api-client

Owner: Caldera Labs

Description: PHP Client For Easy Digital Downloads API

Created: 2016-10-31 00:56:29.0

Updated: 2017-11-13 18:26:55.0

Pushed: 2017-06-24 21:25:50.0

Homepage: null

Size: 7

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

edd-api-client

PHP HTTP Client For Easy Digital Downloads API

Installation

composer require calderawp/edd-api-client

Usage
EDD Core
 Get Customers
ge 1

customers = $site->customers();`

ge 2

customers = $site->customers(2);`

 Customers
customers = $site->customers(1,50);`

stomer with ID 42

customer = $site->customerr( 42 );`


 Get Products
ge 1

products = $site->products();`

ge 2

products = $site->products(2);`

 Products

products = $site->product(1,50);`

odcut with ID 42

product = $site->product( 42 );`


 Get Sales
st recent

`$sales = $site->sales();`

les by customer Email

sales = $site->sales( 'roy@roysivan.com' );`

le with ID 42

sals = $site->sale( 42 );`

EDD Recurring
: I submitted some pull requests to make this work, use the api-fix branch in my fork for now.

 Get Subscriptions

$subscriptions = new \CalderaWP\EDD\API\Subscriptions( $client, $key, $token ); $page1 = $subscriptions->subscriptions(); $page2 = $subscriptions->subscriptions(2);

 Get Subscription

$sub = $subscriptions->subscription(42);

icense
right 2016+ CalderaWP LLC. Licnesed under the GNU GPL V2+

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.