{"id":18930046,"url":"https://github.com/labd/bluestonepim-go-sdk","last_synced_at":"2025-07-28T06:07:58.136Z","repository":{"id":254424316,"uuid":"846487386","full_name":"labd/bluestonepim-go-sdk","owner":"labd","description":" Go SDK for BluestonePIM ","archived":false,"fork":false,"pushed_at":"2024-12-01T18:21:19.000Z","size":114,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T17:53:17.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["labd"]}},"created_at":"2024-08-23T10:09:34.000Z","updated_at":"2024-08-23T12:09:18.000Z","dependencies_parsed_at":"2024-08-23T11:45:17.351Z","dependency_job_id":"3933910f-07e7-441a-a277-cc8f32e1d447","html_url":"https://github.com/labd/bluestonepim-go-sdk","commit_stats":null,"previous_names":["labd/bluestonepim-go-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fbluestonepim-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labd","download_url":"https://codeload.github.com/labd/bluestonepim-go-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927825,"owners_count":19719835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:36:21.149Z","updated_at":"2025-02-20T22:43:03.925Z","avatar_url":"https://github.com/labd.png","language":"Go","funding_links":["https://github.com/sponsors/labd"],"categories":[],"sub_categories":[],"readme":"# bluestonepim-go-sdk\n\n[![Build Status](https://github.com/labd/bluestonepim-go-sdk/workflows/Go%20Tests/badge.svg)](https://github.com/labd/bluestonepim-go-sdk/workflows/)\n[![codecov](https://codecov.io/gh/LabD/bluestonepim-go-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/LabD/bluestonepim-go-sdk)\n[![Go Report Card](https://goreportcard.com/badge/github.com/labd/bluestonepim-go-sdk)](https://goreportcard.com/report/github.com/labd/bluestonepim-go-sdk)\n[![GoDoc](https://godoc.org/github.com/labd/bluestonepim-go-sdk?status.svg)](https://godoc.org/github.com/labd/bluestonepim-go-sdk)\n\nThe Bluestone PIM Go SDK is automatically generated based on the official [API specifications](https://docs.api.bluestonepim.com/docs/openapi-documentation)\nof Bluestone PIM. It should therefore be nearly feature complete.\n\nThe SDK was initially created for enabling the creation of the\n[Terraform Provider for Bluestone PIM](https://github.com/labd/terraform-provider-bluestonepim)\nThat provider enables you to use infrastructure-as-code principles with Bluestone PIM.\n\nNote that since this SDK is automatically generated we cannot guarantee backwards\ncompatibility between releases. Please pin the dependency correctly and be aware\nof potential changes when updating\n\n## Using the SDK\n\n```go\npackage main\n\nimport (\n   \"context\"\n   \"errors\"\n   \"fmt\"\n   \"github.com/labd/bluestonepim-go-sdk/pim\"\n   \"log\"\n   \"math/rand\"\n   \"time\"\n\n   \"golang.org/x/oauth2/clientcredentials\"\n)\n\nfunc main() {\n\n   // Create the new client. When an empty value is passed it will use the CTP_*\n   // environment variables to get the value. The HTTPClient arg is optional,\n   // and when empty will automatically be created using the env values.\n   oauth2Config := \u0026clientcredentials.Config{\n      ClientID:     \"\u003cyour-client-id\u003e\",\n      ClientSecret: \"\u003cyour-client-secret\",\n      TokenURL:     \"https://idp.bluestonepim.com/op/token\",\n   }\n   \n   ctx := context.Background()\n\n   httpClient := oauth2Config.Client(ctx)\n\n   client, err := pim.NewClientWithResponses(\n      fmt.Sprintf(\"%s/pim\", \"https://api.bluestonepim.com\"),\n      pim.WithHTTPClient(httpClient),\n   )\n   if err != nil {\n      log.Fatal(err)\n   }\n   \n   // Create a new category\n   response, err := client.CreateCategoryWithResponse(ctx,\n      \u0026pim.CreateCategoryParams{\n         Validation: \"NAME\",\n      },\n      pim.CreateCategoryJSONRequestBody{\n         Name:     \"my category name\",\n         Number:   \"my-category-key\",\n      },\n   )\n    if err != nil {\n        log.Fatal(err)\n    }\n}\n\n```\n\n## Generating code\n\nTo re-generate the API take the following steps:\n - Install `task` from https://taskfile.dev/installation/\n - `go mod download` to fetch all the required tools\n - `task generate` to generate the code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fbluestonepim-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabd%2Fbluestonepim-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fbluestonepim-go-sdk/lists"}