Email Marketing and SMS Marketing Platform
Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.
With the Klaviyo API, you can build a variety of things, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
klaviyo: {
type: "app",
app: "klaviyo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://a.klaviyo.com/api/v2/lists`,
headers: {
"Authorization": `Klaviyo-API-Key ${this.klaviyo.$auth.api_key}`,
"revision": `2022-10-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)
}