Riddle is a beautifully intuitive online quiz maker and marketing platform - allowing publishers, brands and bloggers add quizzes, personality tests, polls and more to their websites.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
With Riddle Quiz Maker you can make creating engaging quizzes and surveys with
visuals super easy. The API enables you to quickly and easily build interactive
quizzes and surveys to capture leads, measure results and engage users.
With the Riddle Quiz Maker API, you can quickly and easily create:
With the Riddle Quiz Maker API, you can create intelligent, dynamic quizzes to
engage with your audience and collect valuable insights that help grow your
business. Try it today!
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
riddle_quiz_maker: {
type: "app",
app: "riddle_quiz_maker",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.riddle.com/api/v2/riddle/get/types`,
headers: {
"Authorization": `Bearer ${this.riddle_quiz_maker.$auth.api_token}`,
"Key": `${this.riddle_quiz_maker.$auth.api_key}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})