You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
iferr!=nil {
fmt.Println("error domo dataset")
}
for_, ds:=rangedata {
out:=fmt.Sprintf("DomoDomo Dataset name: %s, ID: %s", ds.Name, ds.ID)
fmt.Println(out)
}
Example using your own http client with OAuth2 configured on it