The generated code relies on node package manager (npm) being available to resolve dependencies.
You can install this package with this npm command :
npm install pinch-api --save
The following shows how import the controllers and use:
- Import the module:
var pinch = require('pinch-api');
- Configure authentication parameters. For example:
pinch.configuration.xAPITOKEN = 'MY_API_KEY';
pinch.configuration.xAPIEMAIL = 'myemail@example.com';
- Make your requests :
var ticketId = 42;
pinch.TicketController.get(ticketId, function(error, result){
console.log(result);
});
Please refer to the nodejs documentation.