I have encountered a problem when I tried to create a package from a template with the rest API. I used all tips and instruction I found in the documentation and on forums, but I did'nt found a solution yet. Here is one of the documentation :

Example code shows how to create a simple callback event notification listener in Node.js
Rate this Code Share
Source type
Direct file upload - File will be hosted on developer website