https://github.com/labd/amplience-go-sdk
https://github.com/labd/amplience-go-sdk
amplience go-sdk
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/labd/amplience-go-sdk
- Owner: labd
- License: mit
- Created: 2021-03-05T09:46:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-07T14:51:08.000Z (over 1 year ago)
- Last Synced: 2025-03-28T22:51:11.287Z (about 1 year ago)
- Topics: amplience, go-sdk
- Language: Go
- Homepage:
- Size: 218 KB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
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/