with Storeganise and LaunchNotes?
Emit new event when a new invoice is created in Storeganise.
Emit new event when an announcement is published.
Emit new event when a unit rental is created in Storeganise
Emit new event when an announcement is scheduled.
Adds a payment to the targeted invoice. See the documentation
Generates a draft announcement for the LaunchNotes project. See the documentation
Marks the selected invoice as paid in Storeganise. See the documentation
Adds a new subscriber to the current LaunchNotes project. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
storeganise: {
type: "app",
app: "storeganise",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.storeganise.$auth.subdomain}.storeganise.com/api/v1/sites`,
headers: {
"Authorization": `ApiKey ${this.storeganise.$auth.api_key}`,
},
})
},
})
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,
})
},
})