From breaking news and entertainment to sports and politics, get the full story with all the live commentary.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
twitter: {
type: "app",
app: "twitter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.twitter.com/1.1/account/verify_credentials.json`,
}, {
token: {
key: this.twitter.$auth.oauth_access_token,
secret: this.twitter.$auth.oauth_refresh_token,
},
oauthSignerUri: this.twitter.$auth.oauth_signer_uri,
})
},
})
export default defineComponent({
props: {
http: {
type: "http_request",
default: {
method: "GET",
url: "http://api.open-notify.org/iss-now.json",
}
}
},
async run({steps, $}) {
return await this.http.execute()
},
})