The New Way Businesses Buy From Businesses
Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.
The Drift API allows you to interact with all of the resources in Drift. This
includes retrieving and updating conversations, retrieving and updating
contacts, and more.
With the Drift API, you can build applications to:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
drift: {
type: "app",
app: "drift",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://driftapi.com/users/list`,
headers: {
Authorization: `Bearer ${this.drift.$auth.oauth_access_token}`,
},
})
},
})
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)
}