Formerly known as Twitter. From breaking news and entertainment to sports and politics, get the full story with all the live commentary. Use a X developer app you've created to send API requests.
Emit new event every time an SMS is sent to the phone number set. Configures a webhook in Twilio, tied to an incoming phone number.
Emit new event when the specified User receives a Follower See the documentation
Emit new event when the specified User follows a List See the documentation
Emit new event each time a call to the phone number is completed. Configures a webhook in Twilio, tied to a phone number.
Emit new event when the specified User is mentioned in a Tweet See the documentation
Retrieve Tweets from the last seven days that match a query. See the documentation
Add a member to a list owned by the user. See the documentation
Make a phone call, passing text that Twilio will speak to the recipient of the call. See the docs for more information
import { axios } from "@pipedream/platform"
import twitter from "@pipedream/twitter"
export default defineComponent({
props: {
twitter
},
async run({steps, $}) {
const config = {
url: `https://api.twitter.com/2/users/me`,
params: {
"user.fields": `created_at,description,entities,id,location,name,pinned_tweet_id,profile_image_url,protected,url,username,verified,withheld`,
expansions: `pinned_tweet_id`,
},
}
const headers = this.twitter._getAuthHeader(config)
return await axios($, {
...config,
headers
})
},
})
With the Twilio API, you can build telephone applications that make and receive
phone calls, as well astext messaging applications that send and receive text
messages.
Some examples of applications you could build include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
twilio: {
type: "app",
app: "twilio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.twilio.com/2010-04-01/Accounts.json`,
auth: {
username: `${this.twilio.$auth.AccountSid}`,
password: `${this.twilio.$auth.AuthToken}`,
},
})
},
})