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,
})
},
})
Return Tweets that matches your search criteria. See the docs here
Return Tweets that matches your search criteria. See the docs here
Add a member to a list. The authenticated user must own the list to be able to add members to it. See the docs here
Twitter uses OAuth authentication. When you connect your Twitter account, Pipedream will open a popup window where you can sign into Twitter and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Twitter API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.twitter.com/oauth/request_token
GET
https://api.twitter.com/oauth/authenticate
?
client_id={{oauth.client_id}}
&
state={{oauth.state}}
&
redirect_uri={{oauth.redirect_uri}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
oauth_token={{oauth.token}}
&
force_login=true
POST
https://api.twitter.com/oauth/access_token
content-type: application/x-www-form-urlencoded