{"id":18903777,"url":"https://github.com/bububa/go1688","last_synced_at":"2025-04-15T03:33:41.463Z","repository":{"id":62690212,"uuid":"228810960","full_name":"bububa/go1688","owner":"bububa","description":"1688 golang SDK","archived":false,"fork":false,"pushed_at":"2023-01-17T09:37:22.000Z","size":165,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T00:41:53.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://open.1688.com/solution/solutionDetail.htm?solutionKey=1559112028404#apiAndMessageList","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/bububa.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":"2019-12-18T10:01:34.000Z","updated_at":"2024-01-28T06:53:39.000Z","dependencies_parsed_at":"2023-02-01T05:16:08.473Z","dependency_job_id":null,"html_url":"https://github.com/bububa/go1688","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fgo1688","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fgo1688/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fgo1688/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bububa%2Fgo1688/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bububa","download_url":"https://codeload.github.com/bububa/go1688/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223657830,"owners_count":17181024,"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":"2024-11-08T09:06:26.531Z","updated_at":"2024-11-08T09:06:27.192Z","avatar_url":"https://github.com/bububa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1688.com电商采购API\n\n详情参见1688电商采购[API文档](https://open.1688.com/solution/solutionDetail.htm?solutionKey=1559112028404#apiAndMessageList)\n[![Go Reference](https://pkg.go.dev/badge/github.com/bububa/go1688.svg)](https://pkg.go.dev/github.com/bububa/go1688)\n[![Go](https://github.com/bububa/go1688/actions/workflows/go.yml/badge.svg)](https://github.com/bububa/go1688/actions/workflows/go.yml)\n[![goreleaser](https://github.com/bububa/go1688/actions/workflows/goreleaser.yml/badge.svg)](https://github.com/bububa/go1688/actions/workflows/goreleaser.yml)\n[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/bububa/go1688.svg)](https://github.com/bububa/go1688)\n[![GoReportCard](https://goreportcard.com/badge/github.com/bububa/go1688)](https://goreportcard.com/report/github.com/bububa/go1688)\n[![GitHub license](https://img.shields.io/github/license/bububa/go1688.svg)](https://github.com/bububa/go1688/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/bububa/go1688.svg)](https://GitHub.com/bububa/go1688/releases/)\n\n## Usage\n```\npackage main\n\nimport (\n\t\"log\"\n  \n\t\"github.com/bububa/go1688\"\n\t\"github.com/bububa/go1688/requests/alibaba/product\"\n)\n\nconst (\n\tAppKey           = \"xxx\"\n\tAppSecret        = \"xxx\"\n\tproductId uint64 = 594279676823\n)\n\nfunc main() {\n\tclient := go1688.NewClient(AppKey, AppSecret, nil)\n\tgetProductInfo(client, productId)\n}\n\nfunc getProductInfo(client *go1688.Client, productId uint64) {\n\treq := \u0026product.CpsMediaProductInfoRequest{\n\t\tOfferId: productId,\n\t}\n\tinfo, bizInfos, err := product.CpsMediaProductInfo(client, req, \"\")\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t\treturn\n\t}\n  log.Printf(\"info: %+v, biz: %+v\", info, bizInfos)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbububa%2Fgo1688","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbububa%2Fgo1688","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbububa%2Fgo1688/lists"}