Skip to content

labd/contentstack-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contentstack management SDK for Go

This is the Go SDK for the contentstack management API. It is primarily developed to be used in our terraform provider for contenstack, see https://github.com/labd/terraform-provider-contentstack

Example

cfg := management.ClientConfig{
    BaseURL:    "https://eu-api.contentstack.com/",
    HTTPClient: httpClient,
    AuthToken:  "foobar", // Optional
}

client, err := management.NewClient(cfg)
if err != nil {
    panic(err)
}

stackAuth := management.StackAuth{
    ApiKey:          "foobar", // Required
    ManagementToken: "secret", // Optional
})

instance, err := client.Stack(stackAuth)
if err != nil {
    panic(err)
}

webhooks, err := stack.WebHookFetchAll(context.TODO())
if err != nil {
    panic(err)
}

About

Go SDK for the Contentstack management API

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages