{"id":29099975,"url":"https://github.com/bcc-code/bcc-core-api-go","last_synced_at":"2025-06-28T17:38:34.995Z","repository":{"id":194325829,"uuid":"690080695","full_name":"bcc-code/bcc-core-api-go","owner":"bcc-code","description":"The Go SDK for the BCC Core API","archived":false,"fork":false,"pushed_at":"2024-03-13T23:02:30.000Z","size":136,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T02:53:05.259Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcc-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-11T13:48:07.000Z","updated_at":"2023-09-12T13:36:15.000Z","dependencies_parsed_at":"2023-09-23T13:39:00.277Z","dependency_job_id":null,"html_url":"https://github.com/bcc-code/bcc-core-api-go","commit_stats":null,"previous_names":["bcc-code/bcc-core-api-go"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bcc-code/bcc-core-api-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbcc-core-api-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbcc-core-api-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbcc-core-api-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbcc-core-api-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcc-code","download_url":"https://codeload.github.com/bcc-code/bcc-core-api-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcc-code%2Fbcc-core-api-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262471210,"owners_count":23316633,"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":"2025-06-28T17:38:04.318Z","updated_at":"2025-06-28T17:38:34.989Z","avatar_url":"https://github.com/bcc-code.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bcc-core-api-go\nThe Go SDK for the BCC Core API\n\n-------------------------------------\n\n## Documentation\n\n- [Godoc](https://pkg.go.dev/github.com/bcc-code/bcc-core-api-go/bcccoreapi).\n\n## Getting started\n\n### Installation\n\n```sh\ngo get github.com/bcc-code/bcc-core-api-go\n```\n\n### Usage\n\nCreate an Core API client by providing the details of your client.\n\n```go\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/bcc-code/bcc-core-api-go/bcccoreapi\"\n)\n\nfunc main() {\n\tclientID := \"EXAMPLE_CLIENT_ID\"\n\tclientSecret := \"EXAMPLE_CLIENT_SECRET\"\n\n\t// Initialize a new client using a domain, client ID and client secret.\n\tclient, err := bcccoreapi.NewClient(\n\t\tbcccoreapi.WithClientCredentials(\n\t\t\tcontext.Background(),\n\t\t\tclientID,\n\t\t\tclientSecret,\n\t\t),\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to initialize the core API client: %+v\", err)\n\t}\n\n\t// Now we can interact with the BCC Core API.\n\t// Fetch a person by Uid\n\n\tp, err := client.Person.Get(context.Background(), \"657a66ca-9cd0-4b61-9476-697016e26fbc\")\n\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to get a person by Uid: %+v\", err)\n\t}\n\n\tfmt.Println(p.DisplayName)\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcc-code%2Fbcc-core-api-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcc-code%2Fbcc-core-api-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcc-code%2Fbcc-core-api-go/lists"}