Project planning and source code management
Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.
Gitlab API allows developers to access the functionality of Gitlab. With the
Gitlab API, developers can integrate Gitlab with other applications, create
custom applications, or automate tasks.
Some examples of what you can build using the Gitlab API include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gitlab: {
type: "app",
app: "gitlab",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://gitlab.com/api/v4/user`,
headers: {
Authorization: `Bearer ${this.gitlab.$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)
}