https://github.com/labd/bluestonepim-go-sdk
Go SDK for BluestonePIM
https://github.com/labd/bluestonepim-go-sdk
Last synced: 11 months ago
JSON representation
Go SDK for BluestonePIM
- Host: GitHub
- URL: https://github.com/labd/bluestonepim-go-sdk
- Owner: labd
- License: mit
- Created: 2024-08-23T10:09:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-01T18:21:19.000Z (over 1 year ago)
- Last Synced: 2025-02-12T17:53:17.786Z (over 1 year ago)
- Language: Go
- Size: 111 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
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
# bluestonepim-go-sdk
[](https://github.com/labd/bluestonepim-go-sdk/workflows/)
[](https://codecov.io/gh/LabD/bluestonepim-go-sdk)
[](https://goreportcard.com/report/github.com/labd/bluestonepim-go-sdk)
[](https://godoc.org/github.com/labd/bluestonepim-go-sdk)
The Bluestone PIM Go SDK is automatically generated based on the official [API specifications](https://docs.api.bluestonepim.com/docs/openapi-documentation)
of Bluestone PIM. It should therefore be nearly feature complete.
The SDK was initially created for enabling the creation of the
[Terraform Provider for Bluestone PIM](https://github.com/labd/terraform-provider-bluestonepim)
That provider enables you to use infrastructure-as-code principles with Bluestone PIM.
Note that since this SDK is automatically generated we cannot guarantee backwards
compatibility between releases. Please pin the dependency correctly and be aware
of potential changes when updating
## Using the SDK
```go
package main
import (
"context"
"errors"
"fmt"
"github.com/labd/bluestonepim-go-sdk/pim"
"log"
"math/rand"
"time"
"golang.org/x/oauth2/clientcredentials"
)
func main() {
// Create the new client. When an empty value is passed it will use the CTP_*
// environment variables to get the value. The HTTPClient arg is optional,
// and when empty will automatically be created using the env values.
oauth2Config := &clientcredentials.Config{
ClientID: "",
ClientSecret: "