{"id":22598512,"url":"https://github.com/nilorg/go-opentaobao","last_synced_at":"2025-04-11T01:21:13.225Z","repository":{"id":39953953,"uuid":"163122942","full_name":"nilorg/go-opentaobao","owner":"nilorg","description":"🎉淘宝Api、淘宝开放平台Api请求基础SDK","archived":false,"fork":false,"pushed_at":"2023-05-25T09:40:14.000Z","size":35,"stargazers_count":61,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T22:21:04.881Z","etag":null,"topics":["go","go-opentaobao","golang","opentaobao","opentaobao-sdk","taobao-sdk"],"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/nilorg.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}},"created_at":"2018-12-26T01:32:11.000Z","updated_at":"2024-08-22T09:39:26.000Z","dependencies_parsed_at":"2024-06-19T01:25:34.006Z","dependency_job_id":null,"html_url":"https://github.com/nilorg/go-opentaobao","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilorg%2Fgo-opentaobao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilorg%2Fgo-opentaobao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilorg%2Fgo-opentaobao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilorg%2Fgo-opentaobao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilorg","download_url":"https://codeload.github.com/nilorg/go-opentaobao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248323264,"owners_count":21084474,"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","go-opentaobao","golang","opentaobao","opentaobao-sdk","taobao-sdk"],"created_at":"2024-12-08T11:06:05.874Z","updated_at":"2025-04-11T01:21:13.210Z","avatar_url":"https://github.com/nilorg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# taobaogo\n淘宝Api、淘宝开放平台Api请求基础SDK\n\n# 淘宝API\n\n[sign算法](http://open.taobao.com/doc.htm?docId=101617\u0026docType=1)\n\n[淘宝Session](https://oauth.taobao.com/authorize?response_type=token\u0026client_id=24840730)\n\n# Example 🌰\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/nilorg/go-opentaobao/v2\"\n)\n\nfunc main() {\n\tclient := opentaobao.NewClient(\n\t\topentaobao.WithAppKey(os.Getenv(\"APP_KEY\")),\n\t\topentaobao.WithAppSecret(os.Getenv(\"APP_SECRET\")),\n\t)\n\tctx := context.Background()\n\t// EXP: 使用session\n\t// ctx = opentaobao.NewSessionContext(ctx, \"session\")\n\tresult, err := client.Execute(ctx, \"taobao.tbk.dg.material.optional\", opentaobao.Parameter{\n\t\t\"q\":         \"鸿星尔克男鞋板鞋\",\n\t\t\"adzone_id\": os.Getenv(\"ADZONE_ID\"),\n\t\t\"platform\":  \"2\",\n\t})\n\n\tif err != nil {\n\t\tlog.Printf(\"execute error:%s\\n\", err)\n\t\treturn\n\t}\n\tlog.Printf(\"result:%s\\n\", result.String())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilorg%2Fgo-opentaobao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilorg%2Fgo-opentaobao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilorg%2Fgo-opentaobao/lists"}