with Apify (OAuth) and Imgur?
Performs an execution of a selected Actor in Apify. See the documentation
Run a specific task and return its dataset items. See the documentation
Executes a scraper on a specific website and returns its content as HTML. This action is perfect for extracting content from a single page. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
apify_oauth: {
type: "app",
app: "apify_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.apify.com/v2/users/me`,
headers: {
Authorization: `Bearer ${this.apify_oauth.$auth.oauth_access_token}`,
},
})
},
})
The Imgur API offers a way to programmatically engage with the Imgur platform, allowing for the upload and management of images, as well as access to Imgur's vast gallery of community images. With Pipedream, you can harness this API to create automated workflows that respond to various triggers and integrate with other services. This can facilitate tasks like automated image sharing, content moderation, or social media management.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
imgur: {
type: "app",
app: "imgur",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.imgur.com/3/account/me/`,
headers: {
Authorization: `Bearer ${this.imgur.$auth.oauth_access_token}`,
},
})
},
})