with Qualaroo and MyOTP.App?
Generate a One Time Password (OTP) and send it to the specified phone number. See the documentation
Validate the OTP for successful verification. See the documentation
Qualaroo is an advanced tool for collecting user feedback through surveys and analyzing those insights. With the Qualaroo API, you can programmatically manage your surveys, retrieve survey responses, and integrate user feedback into your data pipeline to enhance decision-making. On Pipedream, you can harness this API to automate the aggregation of survey data, trigger actions based on feedback, and sync insights across various platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qualaroo: {
type: "app",
app: "qualaroo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.qualaroo.com/api/v1/nudges/{survey_id}/responses.json`,
auth: {
username: `${this.qualaroo.$auth.api_key}`,
password: `${this.qualaroo.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
myotp_app: {
type: "app",
app: "myotp_app",
}
},
async run({steps, $}) {
const data = {
"phone_number": this.myotp_app.$auth.phone_number,
}
return await axios($, {
method: "post",
url: `https://api.myotp.app/generate_otp`,
headers: {
"X-API-Key": `${this.myotp_app.$auth.api_key}`,
},
data,
})
},
})