Can I Download Perks via an API?
If you want to automate installing perks on your site using something like Composer, you can integrate directly with our API to do so.
Our perk download links can be found at the following API endpoint:
https://gravitywiz.com/gwapi/v4/?edd_action=get_products
To download perks, find the appropriate “package” key for the perks you’d like to download from the get_products
JSON response.
Example package URL for GP Notification Scheduler:
https://gravitywiz.com/gwapi/v4?edd_action=download_product&product_id=736472&url=%URL%&license_id=%LICENSE_ID%&license_hash=%LICENSE_HASH%
Then, replace the following variables:
- Replace
%URL%
with your site’s URL. Replace
%LICENSE_ID%
with your license ID. Your license ID can be found by:Running one of the following commands in WP-CLI after activating your license:
Gravity Perks
wp eval "echo GWPerks::get_license_data()['ID'];"
Gravity Connect
wp eval "echo \Gravity_Connect\Licensing\GWAPI::get_instance()->get_license_id();"
Gravity Shop
wp eval "gs_product_configurator()->init_auto_updater(); echo gs_product_configurator()->gwapi_lite->get_license_id();"
Navigating to Forms › Perks › Manage in the WordPress Dashboard. From the Account page, click Manage Sites. The license ID will appear in your URL. For example, this URL indicates the license ID is
123456
:https://gravitywiz.com/account/licenses/?license_id=123456&action=manage_licenses&payment_id=963852
If neither of the above methods are possible, reach out to support and we can send over your license ID.
- Replace
%LICENSE_HASH%
with an MD5 hash of your license key.