{"id":37215832,"url":"https://github.com/hotafrika/ebay-common","last_synced_at":"2026-01-15T00:57:26.070Z","repository":{"id":56854242,"uuid":"441306971","full_name":"hotafrika/ebay-common","owner":"hotafrika","description":"Golang client for getting Ebay Authorization tokens","archived":false,"fork":false,"pushed_at":"2021-12-27T21:53:14.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T08:04:54.774Z","etag":null,"topics":["ebay","ebay-api","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hotafrika.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}},"created_at":"2021-12-23T22:13:50.000Z","updated_at":"2024-06-20T08:04:54.774Z","dependencies_parsed_at":"2022-09-21T11:12:10.372Z","dependency_job_id":null,"html_url":"https://github.com/hotafrika/ebay-common","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hotafrika/ebay-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotafrika%2Febay-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotafrika%2Febay-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotafrika%2Febay-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotafrika%2Febay-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hotafrika","download_url":"https://codeload.github.com/hotafrika/ebay-common/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hotafrika%2Febay-common/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"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":["ebay","ebay-api","go","golang"],"created_at":"2026-01-15T00:57:25.339Z","updated_at":"2026-01-15T00:57:26.063Z","avatar_url":"https://github.com/hotafrika.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![example workflow](https://github.com/hotafrika/ebay-common/actions/workflows/autotests.yml/badge.svg)\n\n\n# ebay-common\nThe repo contains common tools for using my other eBay libs.\n\n### 1. Auth token generation\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/hotafrika/ebay-common/auth\"\n)\n\nfunc main() {\n\tclientID := \"xxx\"\n\tclientSecret := \"xxxx\"\n\n\tservice := auth.NewService().\n\t\tWithScopes(auth.ScopeCredentialCommon).\n\t\tWithCredentials(clientID, clientSecret)\n\t\n\ttoken, err := service.GetAppToken()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(token)\n\t\n\t// or make reusable service for generating tokens by different credentials\n\treusableService := auth.NewService().WithScopes(auth.ScopeCredentialCommon)\n\ttoken1, err := reusableService.GetAppTokenWithCredentials(\"aaa\", \"aaaaa\")\n\ttoken2, err := reusableService.GetAppTokenWithCredentials(\"bbb\", \"bbbb\")\n\tfmt.Println(token1, token2)\n}\n```\n\n### 2. Encoding/decoding eBay datetime values\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/hotafrika/ebay-common/datetime\"\n)\n\nfunc main() {\n\tebayDatetime := \"2007-07-24T21:05:05.781Z\"\n\tnormalDatetime, _ := datetime.FromEbayDateTime(ebayDatetime)\n\n\tagainEbayDatetime := datetime.ToEbayDateTime(normalDatetime)\n\tfmt.Println(againEbayDatetime) // \"2007-07-24T21:05:05.781Z\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhotafrika%2Febay-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhotafrika%2Febay-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhotafrika%2Febay-common/lists"}