Helping brands build trust one review at a time.
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}`,
},
})
},
})
The Filter API is a great way to build powerful workflows that can manipulate
and transform data. Here are some examples of what you can build using the
Filter API:
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})