Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 428 Bytes

USAGE.md

File metadata and controls

27 lines (23 loc) · 428 Bytes
package main

import (
	"context"
	rudder "github.com/infra-rdc/rudder-go"
	"log"
)

func main() {
	s := rudder.New(
		rudder.WithSecurity("<YOUR_API_KEY_HERE>"),
	)

	ctx := context.Background()
	res, err := s.ChangeRequests.ListChangeRequests(ctx)
	if err != nil {
		log.Fatal(err)
	}
	if res.Object != nil {
		// handle response
	}
}