with SmashSend and Humor API?
Rate a joke or a meme with your upvote or downvote. See the docs here
Searches for jokes based on user-defined criteria. See the docs here
Create a new contact or update an existing contact. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smashsend: {
type: "app",
app: "smashsend",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smashsend.com/v1/api-keys/check`,
headers: {
Authorization: `Bearer ${this.smashsend.$auth.api_key}`,
},
})
},
})
The Humor API is a tool that offers a variety of endpoints to add some laughter to your applications. Integrated into Pipedream, you can harness this API to create custom workflows that trigger actions across various services, responding to events with a light-hearted touch. Use cases may include sending jokes as icebreakers in emails, posting humorous content to social media, or integrating fun prompts into chatbots.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
humor_api: {
type: "app",
app: "humor_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.humorapi.com/memes/search`,
headers: {
"Content-Type": `application/json`,
},
params: {
keywords: `{your_keywords}`,
"api-key": `${this.humor_api.$auth.api_key}`,
},
})
},
})