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.
Riddle Quiz Maker API lets you tap into a rich seam of interactive content, from quizzes to polls and surveys. By leveraging this API on Pipedream, you can automate interactions with your quizzes, extract responses in real-time, synchronize data across platforms, and trigger actions based on user engagement. Exploiting Pipedream's serverless platform allows you to create workflows that respond swiftly, integrate with numerous apps, and streamline content management—turning audience insights into actionable intelligence.
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}`,
},
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// 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
},
})