{"id":19167187,"url":"https://github.com/dyweb/go-jaccount","last_synced_at":"2025-05-07T13:40:44.375Z","repository":{"id":55553764,"uuid":"244447663","full_name":"dyweb/go-jaccount","owner":"dyweb","description":"Go Client for jAccount","archived":false,"fork":false,"pushed_at":"2022-06-10T09:34:59.000Z","size":82,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-19T22:35:13.876Z","etag":null,"topics":["go","oauth2","oauth2-client","shanghai-jiao-tong-university","sjtu"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/dyweb/go-jaccount","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/dyweb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-02T18:43:10.000Z","updated_at":"2024-01-16T16:46:47.000Z","dependencies_parsed_at":"2022-08-15T03:10:15.630Z","dependency_job_id":null,"html_url":"https://github.com/dyweb/go-jaccount","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyweb%2Fgo-jaccount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyweb%2Fgo-jaccount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyweb%2Fgo-jaccount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyweb%2Fgo-jaccount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyweb","download_url":"https://codeload.github.com/dyweb/go-jaccount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252888848,"owners_count":21820077,"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":["go","oauth2","oauth2-client","shanghai-jiao-tong-university","sjtu"],"created_at":"2024-11-09T09:36:13.373Z","updated_at":"2025-05-07T13:40:44.349Z","avatar_url":"https://github.com/dyweb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Client for jAccount\n\n[![Build Status](https://github.com/dyweb/go-jaccount/workflows/Go/badge.svg)](https://github.com/dyweb/go-jaccount/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dyweb/go-jaccount)](https://goreportcard.com/report/github.com/dyweb/go-jaccount)\n[![GoDoc](https://pkg.go.dev/badge/github.com/dyweb/go-jaccount)](https://pkg.go.dev/github.com/dyweb/go-jaccount)\n[![License](https://img.shields.io/github/license/dyweb/go-jaccount)](https://github.com/dyweb/go-jaccount/blob/master/LICENSE)\n\ngo-jaccount is a Go Client for jAccount API.\n\n## Installation\n\n```shell\ngo get github.com/dyweb/go-jaccount\n```\n\n## Example\n\n```go\n// OAuth 2.0 configuration\nvar config = \u0026oauth2.Config{\n    ClientID:     os.Getenv(\"clientid\"),\n    ClientSecret: os.Getenv(\"secretkey\"),\n    Endpoint:     jaccount.Endpoint,\n    RedirectURL:  \"http://localhost:8000/callback\",\n    Scopes:       []string{\"essential\"},\n}\n\nvar client *jaccount.Client\n\nc := config.Client(oauth2.NoContext, token)\n\n// jAccount API client\nclient = jaccount.NewClient(c)\n\n// Get the profile of the user\nprofile, err := client.Profile.Get(context.Background())\n```\n\n## References\n\n- [google/go-github](https://github.com/google/go-github)\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyweb%2Fgo-jaccount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyweb%2Fgo-jaccount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyweb%2Fgo-jaccount/lists"}