with Runware and EchtPost Postcards?
Request an image background removal task to be processed by the Runware API. See the documentation
This action creates and schedules a postcard for delivery. See the documentation
Request an image caption task to be processed by the Runware API. See the documentation
Creates a new contact within the EchtPost app. See the documentation
Request an image control net preprocess task to be processed by the Runware API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
runware: {
type: "app",
app: "runware",
}
},
async run({steps, $}) {
const data = [
{
"taskType": "authentication",
"apiKey": `${this.runware.$auth.api_key}`
},
{
"taskType": "imageCaption",
"taskUUID": "11eb6a8b-1fa9-447f-9dc0-c48576f7074e", //random UUID to identify your task.
"inputImage": "https://pipedream.com/s.v0/app_13GhYE/logo/orig"
}
]
return await axios($, {
method: "post",
url: `https://api.runware.ai/v1`,
data,
})
},
})
The EchtPost Postcards API allows you to programmatically send real, physical postcards. With Pipedream's capabilities, you can automate the sending of these postcards in response to various triggers or events. Imagine crafting personalized thank you notes to customers, sending holiday greetings, or running a postcard marketing campaign completely automated with Pipedream's serverless platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
echtpost_postcards: {
type: "app",
app: "echtpost_postcards",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.echtpost.de/v1/contacts`,
params: {
apikey: `${this.echtpost_postcards.$auth.api_key}`,
},
})
},
})