with Sellsy and change.photos?
Transforms an image with various effects and optimizations. See the documentation
The Sellsy API allows you to automate and enhance your customer relationship management and sales processes. Via Pipedream, a serverless integration and automation platform, you can leverage the API to sync data, trigger workflows based on specific actions within Sellsy, and connect Sellsy with a multitude of other services to streamline operations, enhance user engagements, and optimize sales activities.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sellsy: {
type: "app",
app: "sellsy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.sellsy.com/v2/teams`,
headers: {
Authorization: `Bearer ${this.sellsy.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
change_photos: {
type: "app",
app: "change_photos",
}
},
async run({steps, $}) {
const data = {
"url": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
"grayscale": true,
}
return await axios($, {
method: "post",
url: `https://www.change.photos/api/change`,
headers: {
Authorization: `Bearer ${this.change_photos.$auth.api_key}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})