{"id":26786,"date":"2013-12-18T15:26:13","date_gmt":"2013-12-18T15:26:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/license-distribution\/"},"modified":"2015-01-20T18:40:55","modified_gmt":"2015-01-20T18:40:55","slug":"license-distribution","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/license-distribution\/","author":8354706,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"3.7.41","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"License Distribution","header_author":"<a href=\"http:\/\/justin-greer.com\" target=\"_blank\">Justin Greer Interactive, LLC<\/a>","header_description":"","assets_banners_color":"","last_updated":"2015-01-20 18:40:55","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/justin-greer.com\/","header_plugin_uri":"http:\/\/justin-greer.com","header_author_uri":"http:\/\/justin-greer.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2229,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.0":"<p>Nothing because it is the first time you will be installing.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1567147","resolution":"1","location":"plugin"}},"screenshots":{"1":"Create a new license just like you would create post or page. Almost No learning curve."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[15415,40244],"plugin_category":[],"plugin_contributors":[80558],"plugin_business_model":[],"class_list":["post-26786","plugin","type-plugin","status-closed","hentry","plugin_tags-license","plugin_tags-license-distribution","plugin_contributors-justingreerbbi","plugin_committers-justingreerbbi"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/license-distribution.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/license-distribution\/trunk\/screenshot-1.png?rev=1567147","caption":"Create a new license just like you would create post or page. Almost No learning curve."}],"raw_content":"<!--section=description-->\n<p>This plugin allows you to manage, distribute and validate licenses for your software and programs that your sell or simple just require a license for. This plugin is super easy to use and comes with a simple API that allows you to create a license on the fly using one simple function.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Secure license validation using the HTTP\/HTTPS API which returns JSON for cross platform use (Software, Scripts, Plugins, Themes, Apps).<\/li>\n<li>Create a license using WordPress admin or use the API to create a license on the fly.<\/li>\n<li>Ability to suspend a license.<\/li>\n<li>Ability to add an expiration for a license (perfect for 30 day trials).<\/li>\n<\/ul>\n\n<h4>How to use<\/h4>\n\n<p>To validate a license you will use the HTTP\/HTTPS API. Make a call to<\/p>\n\n<pre><code>http:\/\/yourwebsite.com\/license-validation\/license-key-here\n<\/code><\/pre>\n\n<p>The return of the API will present JSON object containing information about the license.<\/p>\n\n<p>If the license is valid, the response will look like below<\/p>\n\n<pre><code>{\"isValid\": true}\n<\/code><\/pre>\n\n<p>If the license is invalid, expired or suspended the following response will be presented<\/p>\n\n<pre><code>{\"isValid\":false,\"message\":\"Message-why-the-license-failed\"}\n<\/code><\/pre>\n\n<p>Full documentation is coming soon. The plugin will be updated with links shortly when the documentation is finished. Until then you can contact, justin@justin-greer.com questions or concerns.<\/p>\n\n<h3>Arbitrary section<\/h3>\n\n<p>If you modify the plugin with features that you feel would be good for future releases please feel free to contact me and share the love.<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Upload <code>License Distribution<\/code> plugin to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Create a license manually just like you would create a post or use the API hook to create a license of the fly<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to create a license using the API hook<\/dt>\n<dd><p>The License distribution plugin comes two main ways to create a license. To use the API hook, you simply make sure the plugin is installed and activated. You then can use the API hook to create a license on the fly.<\/p>\n\n<pre><code>\/\/ $createLicense = ld_create_new_license( $licensee_name, $licensee_email, $product_name);\n$create_license = ld_create_new_license( 'Justin Greer', 'justin@justin-greer.com', 'Test Product');\n<\/code><\/pre>\n\n<p>The above function will create a license for \"Justin Greer\" and the product \"Test Product\". The function also returns information about the license which you can use to send or display to the user. Refer to the documentation for more details on how to use <code>ld_create_new_license()<\/code>.<\/p><\/dd>\n<dt>Does the plugin send notification emails when a license is created?<\/dt>\n<dd><p>Short answer, No. The plugin is meant to be bare bones so you can integrate seamlessly how you need it. With this said, I do plan on added email notifications in future releases.<\/p><\/dd>\n<dt>How do I validate a license in my products<\/dt>\n<dd><p>To validate a license you will use the HTTP\/HTTPS API. Make a call to<\/p>\n\n<pre><code>http:\/\/youwebsite.com\/license-validation\/license-key-here\n<\/code><\/pre>\n\n<p>The return of the API will present JSON object containing information about the license.<\/p>\n\n<p>If the license is valid the response will look like below<\/p>\n\n<pre><code>{\"isValid\": true}\n<\/code><\/pre>\n\n<p>If the license is invalid, expired or suspended the following response will be presented<\/p>\n\n<pre><code>{\"isValid\":false,\"message\":\"Message-why-the-license-failed\"}\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Build<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Patch for header issue when calling API<\/li>\n<\/ul>","raw_excerpt":"Allows your WordPress website to manage, distribute and validate licenses for your desktop  software, mobile apps and web applications.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26786"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/justingreerbbi"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26786"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26786"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26786"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26786"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26786"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}