with Reviews.io and change.photos?
Transforms an image with various effects and optimizations. See the documentation
The Reviews.io API allows for automated management and retrieval of review data from the Reviews.io platform. Within Pipedream, you can leverage this API to build serverless workflows that trigger on specific events, integrate with other services, manipulate and analyze review data, and automate responses or notifications. By tapping into Reviews.io via Pipedream, businesses can enhance their customer feedback loop, monitor their reputation, and engage with their reviewers efficiently.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
reviews_io: {
type: "app",
app: "reviews_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.reviews.io/product/invitations`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
},
params: {
store: `${this.reviews_io.$auth.store_id}`,
apikey: `${this.reviews_io.$auth.api_key}`,
},
})
},
})
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,
})
},
})