Last active
June 3, 2020 14:32
-
-
Save rostockahoi/7993dceb75bec125867fb64470ac572c to your computer and use it in GitHub Desktop.
Craftnet Plugin License Generator (Postman)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info":{ | |
"_postman_id":"ca72bd7c-e45c-4894-a57b-ab8f33141af3", | |
"name":"Craftnet", | |
"schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item":[ | |
{ | |
"name":"Craft plugin license generator", | |
"request":{ | |
"auth":{ | |
"type":"basic", | |
"basic":[ | |
{ | |
"key":"password", | |
"value":"CRAFT_ID_API_KEY", | |
"type":"string" | |
}, | |
{ | |
"key":"username", | |
"value":"CRAFT_ID_USERNAME", | |
"type":"string" | |
} | |
] | |
}, | |
"method":"POST", | |
"header":[ | |
{ | |
"key":"Content-Type", | |
"name":"Content-Type", | |
"value":"application/json", | |
"type":"text" | |
} | |
], | |
"body":{ | |
"mode":"raw", | |
"raw":"{\n\t\"edition\": \"standard\",\n\t\"plugin\": \"PLUGIN_HANDLE\",\n\t\"email\": \"LICENSEE_EMAIL\",\n\t\"expirable\": true\n}" | |
}, | |
"url":{ | |
"raw":"https://api.craftcms.com/v1/plugin-licenses", | |
"protocol":"https", | |
"host":[ | |
"api", | |
"craftcms", | |
"com" | |
], | |
"path":[ | |
"v1", | |
"plugin-licenses" | |
] | |
} | |
}, | |
"response":[ | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With this Postman request you can create a new plugin license.
Import this file into Postman, then replace the capital letter fields with your username, API key, plugin handle, licensee email and so on.
Here are all available parameters: https://docs.api.craftcms.com/plugin-licenses.html#create-a-plugin-license