An open API service indexing awesome lists of open source software.

https://github.com/labd/amplience-go-sdk


https://github.com/labd/amplience-go-sdk

amplience go-sdk

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Amplience GO SDK

GO SDK for [Amplience](https://amplience.com/).

## Development

To test the API, it might be useful to create a `main.go` file with your own Amplience credentials.

```go
package main

import (
"fmt"
"log"

"github.com/labd/amplience-go-sdk/content"
)

func main() {

client, err := content.NewClient(&content.ClientConfig{
ClientID: "",
ClientSecret: "",
})

results, err := client.HubList()
for _, hub := range results.Items {
log.Println(hub.ID)
}
hub, err := client.HubGet("")

results, err = client.ContentRepositoryList("")
for _, repository := range results.Items {
log.Println(repository.ID)
}

repository, err := client.ContentRepositoryGet("")
results, err = client.ContentItemList(repository.ID)
for _, item := range results.Items {
log.Println(item.ID)
}
}
```

Then you can run your test code like so:

```
go run main.go
```

## Contributing

The Amplience specifications can be found at https://amplience.com/developers/docs/apis/content-management-reference/