Name: edd-sl-api
Owner: Caldera Labs
Description: EDD Software Licensing REST API
Created: 2016-06-20 01:25:57.0
Updated: 2017-04-10 14:11:23.0
Pushed: 2016-12-22 03:10:08.0
Homepage: null
Size: 13
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Provides a RESTful API, using the WordPress REST API for managing Easy Digital Downloads software licenses.
Note: All routes require authentication through WordPress. I recommend using JWT, which is easy and is as secure as wp-login (IE fairly secure if using HTTPS and you are using fail2ban or something.)
Requires PHP 7.0 or later
By license ID for getting and using licenses;
/licenses
GET only
edd-sl-api/v1/licenses
edd-sl-api/v1/licenses?return=full
title
- Download titledownload
- download idslug
- Download slugcode
- License codeactivations
- Number of times license has been activatessites
- Urls of sites license is active onat_limit
- If license is at limitunlimited
- If license is unlimitedlimit
- License activation limitlicense
- License IDlicense/<id>
ID is ID of license code, not the license code.
download
- ID of downloadurl
- URL of site license is being activated onaction
- Either activate
or deactivate
* Uses EDD_Software_Licensing::activate_license() return is the same.
* example return object:
```
{
"success": true
"license_limit": "1"
"site_count": 1
"expires": "1466644121"
"activations_left": 0
}
```
download
- ID of downloadlicense/<id>/file
ID is ID of license code, not the license code.
download
- ID of downloadurl
- URL of site with license activated for that sitelink
that has the download link.Get sites with licenses activated
sites
GET All sites with an active license for any download
sites/user/<id>
GET All sites that a user has a license of any download active on.
sites/download/<id>
GET All sites that a download has an activated license on.
Copyright 2016 Josh Pollock & CalderaWP LLC. Licensed under the terms of the GNU GPL v2 or later.