Create a new life event.
Function to call to fail a job while in a tunnel.
Gets a FileJob from the request body with a temporary file name. The callback will be given the job as its parameter.
webhookJob.getDataAsFileJob(function(fileJob){
fileJob.rename("myfile.zip");
fileJob.move(af.createFolderNest("/var/out/webhook"));
});
Get a string from the request body. The given callback is given a string parameter.
webhookJob.getDataAsString(function(requestBody){
console.log(requestBody);
});
Get the ID.
Get the life cycle object.
Get the name.
Get the name proper.
Get the nest.
Get the HTTP request object.
Get the HTTP response object.
Get the tunnel.
Return a specific URL parameter.
// Webhook URL: /hooks/my/hook?customer_id=MyCust
var customer_id = webhookJob.getUrlParameter("customer_id");
// customer_id => MyCust
Return all URl parameters.
// Webhook URL: /hooks/my/hook?customer_id=MyCust&file_name=MyFile.zip
var query = webhookJob.getUrlParameters();
// query => {customer_id: "MyCust", file_name: "MyFile.zip"}
Check if job is locally available.
Set if the job is locally available.
Set a new name.
Set the nest.
Set the tunnel.
Class name for logging.
Transfer a job to another tunnel directly.
Generated using TypeDoc
WebhookJob constructor