with Screendesk and Screenshot API?
Emit new event when a new recording is created is sent or received.
The Screendesk API lets you automate customer support tasks directly within your apps or websites. Imagine streamlining interactions like ticket creation, response tracking, and support analytics. With Pipedream, you can easily craft workflows that interact with the Screendesk API to enhance customer support efficiency, trigger actions based on ticket status, or synchronize support data with other tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
screendesk: {
type: "app",
app: "screendesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.screendesk.io/api/v1/me`,
headers: {
Authorization: `Bearer ${this.screendesk.$auth.api_token}`,
"Accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
screenshot_api: {
type: "app",
app: "screenshot_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://shot.screenshotapi.net/v3/screenshot`,
params: {
token: `${this.screenshot_api.$auth.api_key}`,
url: `https://google.com`,
output: `JSON`,
},
})
},
})