Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
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 when any of the specified SendGrid events is received
Emit new event when the specified User is mentioned in a Tweet See the documentation
Allows you to add one or more email addresses to the global suppressions group. See the docs here
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
Allows you to create a new contact list. See the docs here
With the Twilio SendGrid API, you can build a number of features into your
application to manage your SendGrid account and send emails. For example, you
can use the API to:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sendgrid: {
type: "app",
app: "sendgrid",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.sendgrid.com/v3/user/account`,
headers: {
Authorization: `Bearer ${this.sendgrid.$auth.api_key}`,
},
})
},
})
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
})
},
})