Twitter Developer App

Use a Twitter developer app you've created to send API requests

Integrate the Twitter Developer App API with the Go API

Setup the Twitter Developer App API trigger to run a workflow which integrates with the Go API. Pipedream's integration platform allows you to integrate Twitter Developer App and Go remarkably fast. Free for developers.

Run Go Code with Go API on New Tweet Metrics from Twitter Developer App API
Twitter Developer App + Go
 
Try it
Run Go Code with Go API on New Message from Twitter Developer App API
Twitter Developer App + Go
 
Try it
Run Go Code with Go API on New Message from Twitter Developer App API
Twitter Developer App + Go
 
Try it
Run Go Code with Go API on New Tweet Metrics from Twitter Developer App API
Twitter Developer App + Go
 
Try it
New Tweet Metrics from the Twitter Developer App API
 
Try it
New Message from the Twitter Developer App API

Emit new event each time the authenticated user receives a Direct Message

 
Try it
New Message from the Twitter Developer App API

Emit an event each time the authenticated user receives a Direct Message

 
Try it
New Tweet Metrics from the Twitter Developer App API

Emit new event on each new twitter metric

 
Try it
Send Direct Message (DM) with the Twitter Developer App API

Send a DM to a user.

 
Try it
Run Go Code with the Go API

Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.

 
Try it

Connect Twitter Developer App

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = defineComponent({
  props: {
    twitter_developer_app: {
      type: "app",
      app: "twitter_developer_app",
    }
  },
  async run({steps, $}) {
    const Twit = require('twit')
    
    const { api_key, api_secret_key, access_token, access_token_secret } = this.twitter_developer_app.$auth
    
    const T = new Twit({
      consumer_key: api_key,
      consumer_secret: api_secret_key,
      access_token,
      access_token_secret,
      timeout_ms: 60 * 1000,  // optional HTTP request timeout to apply to all requests.
      strictSSL: true,  // optional - requires SSL certificates to be valid.
    })
    
    return await T.get('account/verify_credentials', { skip_status: true })
  },
})

Connect Go

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"fmt"

	pd "github.com/PipedreamHQ/pipedream-go"
)

func main() {
	// Access previous step data using pd.Steps
	fmt.Println(pd.Steps)

	// Export data using pd.Export
	data := make(map[string]interface{})
	data["name"] = "Luke"
	pd.Export("data", data)
}

Community Posts

A demo of using the Twitter API, via Pipedream, to render the images from a Twitter account.