with Pirate Weather and ProProfs Quiz Maker?
The Pirate Weather API delivers accurate weather forecasts, leveraging the same data model as top-tier weather services. Within Pipedream, you can craft workflows that tap into this forecast data to trigger events, power notifications, or feed into data analytics tools. The serverless nature of Pipedream simplifies the process of setting up these workflows, allowing for easy integration with various services for a myriad of applications ranging from personal alerts to data driven decision-making in business.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pirate_weather: {
type: "app",
app: "pirate_weather",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pirateweather.net/forecast/${this.pirate_weather.$auth.api_key}/{your_lat,your_long}`,
})
},
})
The ProProfs Quiz Maker API lets you manage quizzes, questions, and results programmatically. With it, you can automate the creation of quizzes, extract quiz data, and integrate quiz results with other systems. On Pipedream, you can create workflows that trigger on a specific event, such as a new quiz completion, and connect with hundreds of other apps to streamline your processes or enhance your data analysis.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
proprofs_quiz_maker: {
type: "app",
app: "proprofs_quiz_maker",
}
},
async run({steps, $}) {
const data = {
"token": `${this.proprofs_quiz_maker.$auth.api_key}`,
"username": `${this.proprofs_quiz_maker.$auth.username}`,
}
return await axios($, {
method: "post",
url: `https://www.proprofs.com/api/classroom/v1/reports/users/`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})