Product Communication for the Modern Enterprise.
Emit new event when an announcement is published.
Emit new event when an announcement is scheduled.
Emit new event when a new project subscription is created.
Generates a draft announcement for the LaunchNotes project. See the documentation
Adds a new subscriber to the current LaunchNotes project. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
launchnotes: {
type: "app",
app: "launchnotes",
}
},
async run({steps, $}) {
const data = {
"query": `query { viewer { id email name }}`,
}
return await axios($, {
method: "post",
url: `https://app.launchnotes.io/graphql`,
headers: {
Authorization: `Bearer ${this.launchnotes.$auth.api_key}`,
},
data,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})