with PrivateBin and Facebook Graph API?
import unirest from "unirest";
export default defineComponent({
props: {
privatebin: {
type: "app",
app: "privatebin",
}
},
async run({ steps, $ }) {
const response = await unirest('GET', `${this.privatebin.$auth.api_url}?${this.privatebin.$auth.paste_id}`)
.headers({
'X-Requested-With': 'JSONHttpRequest',
'Cookie': 'lang=en; template=bootstrap5'
});
return response.body
},
})import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
facebook_graph_api: {
type: "app",
app: "facebook_graph_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.facebook.com/me/`,
headers: {
Authorization: `Bearer ${this.facebook_graph_api.$auth.oauth_access_token}`,
},
})
},
})