clientID := os.Getenv("DOMO_CLIENT_ID")
clientSecret := os.Getenv("DOMO_SECRET")
auth := domo.NewAuthenticator(domo.ScopeData)
auth.SetAuthInfo(clientID, clientSecret) // It defaults to using the same ENV Vars so this is potentially Optional
client := auth.NewClient()
ctx := context.Background()
data, _, err := client.Datasets.List(ctx, 5, 0)
if err != nil {
fmt.Println("error domo dataset")
}
for _, ds := range data {
out := fmt.Sprintf("DomoDomo Dataset name: %s, ID: %s", ds.Name, ds.ID)
fmt.Println(out)
} client := domo.NewClient(YourClient)
ctx := context.Background()
data, _, err := client.Datasets.List(ctx, 5, 0)
if err != nil {
fmt.Println("error domo dataset")
}
for _, ds := range data {
out := fmt.Sprintf("DomoDomo Dataset name: %s, ID: %s", ds.Name, ds.ID)
fmt.Println(out)
}- improve auth scope configuration to include scope in the url auth params based on input flags
- Dataset API wrapper methods
- Stream API wrapper methods
- User API wrapper methods
- Group API wrapper methods
- Page API wrapper methods
- Go Modules for dependency management
- Dataset/Stream upload methods that take an array/slice of structs. i.e. it handles the serialization to CSV as well as schema generation/updating.
- Projects & Tasks API
- Account API