Skip to content

Instantly share code, notes, and snippets.

@rostockahoi
Last active June 3, 2020 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rostockahoi/7993dceb75bec125867fb64470ac572c to your computer and use it in GitHub Desktop.
Save rostockahoi/7993dceb75bec125867fb64470ac572c to your computer and use it in GitHub Desktop.
Craftnet Plugin License Generator (Postman)
{
"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":[
]
}
]
}
@rostockahoi
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment