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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
PHP HTTP Client For Easy Digital Downloads API
composer require calderawp/edd-api-client
ke a guzzle instance
ent = new GuzzleHttp\Client( [ 'base_uri' => 'https://something.com/edd-api/' ] );
= '5419894a576acf9e773cdcdd1a8f9613';
en = '4198047e657734f58a18f3a4051a6af8';
eate site instance
e = new \CalderaWP\EDD\API\Site( $client, $key, $token );
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+