{"id":43004528,"url":"https://github.com/ebc-2in2crc/pixela4go","last_synced_at":"2026-01-31T04:35:13.787Z","repository":{"id":46719146,"uuid":"268811690","full_name":"ebc-2in2crc/pixela4go","owner":"ebc-2in2crc","description":"Pixela (https://pixe.la/) API client for Go.","archived":false,"fork":false,"pushed_at":"2025-04-20T09:04:19.000Z","size":73,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T09:29:11.295Z","etag":null,"topics":["4go","api-client","pixela"],"latest_commit_sha":null,"homepage":"","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/ebc-2in2crc.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-02T13:40:51.000Z","updated_at":"2025-04-20T09:04:22.000Z","dependencies_parsed_at":"2024-01-20T09:26:38.691Z","dependency_job_id":"857bac23-9058-4ecf-9a2d-c4558d455a74","html_url":"https://github.com/ebc-2in2crc/pixela4go","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/ebc-2in2crc/pixela4go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebc-2in2crc%2Fpixela4go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebc-2in2crc%2Fpixela4go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebc-2in2crc%2Fpixela4go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebc-2in2crc%2Fpixela4go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebc-2in2crc","download_url":"https://codeload.github.com/ebc-2in2crc/pixela4go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebc-2in2crc%2Fpixela4go/sbom","scorecard":{"id":364543,"data":{"date":"2025-08-11","repo":{"name":"github.com/ebc-2in2crc/pixela4go","commit":"49f9d88ea37f431b1efafc3148c9407a09202f6c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/ebc-2in2crc/pixela4go/pr.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ebc-2in2crc/pixela4go/pr.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T11:33:26.126Z","repository_id":46719146,"created_at":"2025-08-18T11:33:26.126Z","updated_at":"2025-08-18T11:33:26.126Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28929701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["4go","api-client","pixela"],"created_at":"2026-01-31T04:35:12.012Z","updated_at":"2026-01-31T04:35:13.761Z","avatar_url":"https://github.com/ebc-2in2crc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](README.md) | [日本語](README_ja.md)\n\n# pixela4go\n\n![CI](https://github.com/ebc-2in2crc/pixela4go/actions/workflows/pr.yml/badge.svg)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n[![GoDoc](https://godoc.org/github.com/ebc-2in2crc/pixela4go?status.svg)](https://pkg.go.dev/github.com/ebc-2in2crc/pixela4go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ebc-2in2crc/pixela4go)](https://goreportcard.com/report/github.com/ebc-2in2crc/pixela4go)\n[![Version](https://img.shields.io/github/release/ebc-2in2crc/pixela4go.svg?label=version)](https://img.shields.io/github/release/ebc-2in2crc/pixela4go.svg?label=version)\n\n[Pixela](https://pixe.la/) API client for Go.\n\n[![Cloning count](https://pixe.la/v1/users/ebc-2in2crc/graphs/pixela4go-clone)](https://pixe.la/v1/users/ebc-2in2crc/graphs/pixela4go-clone.html)\n\n## Documentation\n\nhttps://godoc.org/github.com/ebc-2in2crc/pixela4go\n\n## Installation\n\n```\n$ go get -u github.com/ebc-2in2crc/pixela4go\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\tpixela \"github.com/ebc-2in2crc/pixela4go\"\n)\n\nfunc main() {\n\t// Specify the number of retries if you want to retry when the API call is rejected.\n\t// If you do not want to retry, you do not need to specify it.\n\tpixela.RetryCount = 10\n\t\n\tclient := pixela.New(\"YOUR_NAME\", \"YOUR_TOKEN\")\n\n\t// Create new user\n\tuci := \u0026pixela.UserCreateInput{\n\t\tAgreeTermsOfService: pixela.Bool(true),\n\t\tNotMinor:            pixela.Bool(true),\n\t\tThanksCode:          pixela.String(\"thanks-code\"),\n\t}\n\tresult, err := client.User().CreateWithContext(context.Background(), uci)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif result.IsSuccess == false {\n\t\tlog.Fatal(result.Message)\n\t}\n\n\t// Updates the profile information for the user\n\tupi := \u0026pixela.UserProfileUpdateInput{\n\t\tDisplayName:       pixela.String(\"display-name\"),\n\t\tGravatarIconEmail: pixela.String(\"gravatar-icon-email\"),\n\t\tTitle:             pixela.String(\"title\"),\n\t\tTimezone:          pixela.String(\"Asia/Tokyo\"),\n\t\tAboutURL:          pixela.String(\"https://github.com/ebc-2in2crc\"),\n\t\tContributeURLs:    []string{},\n\t\tPinnedGraphID:     pixela.String(\"pinned-graph-id\"),\n\t}\n\tresult, err = client.UserProfile().UpdateWithContext(context.Background(), upi)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif result.IsSuccess == false {\n\t\tlog.Fatal(result.Message)\n\t}\n\n\t// Create new graph\n\tgci := \u0026pixela.GraphCreateInput{\n\t\tID:                  pixela.String(\"graph-id\"),\n\t\tName:                pixela.String(\"graph-name\"),\n\t\tUnit:                pixela.String(\"commit\"),\n\t\tType:                pixela.String(pixela.GraphTypeInt),\n\t\tColor:               pixela.String(pixela.GraphColorShibafu),\n\t\tTimeZone:            pixela.String(\"Asia/Tokyo\"),\n\t\tSelfSufficient:      pixela.String(pixela.GraphSelfSufficientIncrement),\n\t\tIsSecret:            pixela.Bool(true),\n\t\tPublishOptionalData: pixela.Bool(true),\n\t}\n\tresult, err = client.Graph().CreateWithContext(context.Background(), gci)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif result.IsSuccess == false {\n\t\tlog.Fatal(result.Message)\n\t}\n\n\t// Register value\n\tpci := \u0026pixela.PixelCreateInput{\n\t\tDate:     pixela.String(\"20180915\"),\n\t\tQuantity: pixela.String(\"5\"),\n\t\tGraphID:  pixela.String(\"graph-id\"),\n\t}\n\tresult, err = client.Pixel().CreateWithContext(context.Background(), pci)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif result.IsSuccess == false {\n\t\tlog.Fatal(result.Message)\n\t}\n\n\t// Create new webhook\n\twci := \u0026pixela.WebhookCreateInput{\n\t\tGraphID: pixela.String(\"graph-id\"),\n\t\tType:    pixela.String(pixela.WebhookTypeIncrement),\n\t}\n\twebhook, err := client.Webhook().CreateWithContext(context.Background(), wci)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif webhook.IsSuccess == false {\n\t\tlog.Fatal(webhook.Message)\n\t}\n\n\t// Invoke webhook\n\twii := \u0026pixela.WebhookInvokeInput{WebhookHash: pixela.String(\"webhook-hash\")}\n\tresult, err = client.Webhook().InvokeWithContext(context.Background(), wii)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif result.IsSuccess == false {\n\t\tlog.Fatal(result.Message)\n\t}\n}\n```\n\n## Contribution\n\n1. Fork this repository\n2. Create your issue branch (`git checkout -b issue/:id`)\n3. Change codes\n4. Run test suite with the `make test` command and confirm that it passes\n5. Run `make fmt`\n6. Commit your changes (`git commit -am 'Add some feature'`)\n7. Create new Pull Request\n\n## License\n\n[MIT](https://github.com/ebc-2in2crc/pixela4go/blob/master/LICENSE)\n\n## Author\n\n[ebc-2in2crc](https://github.com/ebc-2in2crc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febc-2in2crc%2Fpixela4go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febc-2in2crc%2Fpixela4go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febc-2in2crc%2Fpixela4go/lists"}