Simple resource allocation
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 10,000ft API, you can build applications that:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
_10000ft: {
type: "app",
app: "_10000ft",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.10000ft.com/api/v1/users `,
headers: {
"auth": `${this._10000ft.$auth.token}`,
},
params: {
"Content-Type": `application/json`,
},
})
},
})
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)
}