// Licensed to the Apache Software Foundation (ASF) under one or more contributor | |
// license agreements; and to You under the Apache License, Version 2.0. | |
var openwhisk = require('openwhisk'); | |
function main(params) { | |
console.log(JSON.stringify(params)); | |
var name = params.messages[0].value; | |
var ow = openwhisk(); | |
return ow.triggers.create({name: name}); | |
} |