{"id":17246225,"url":"https://github.com/hanson/weidian-sdk","last_synced_at":"2025-04-14T04:11:51.183Z","repository":{"id":62514400,"uuid":"61011527","full_name":"Hanson/weidian-sdk","owner":"Hanson","description":"微店(weidian)的SDK接口包","archived":false,"fork":false,"pushed_at":"2016-07-12T03:32:58.000Z","size":13,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T04:11:41.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Hanson.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":"2016-06-13T06:12:05.000Z","updated_at":"2025-02-08T21:46:16.000Z","dependencies_parsed_at":"2022-11-02T13:15:41.504Z","dependency_job_id":null,"html_url":"https://github.com/Hanson/weidian-sdk","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fweidian-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fweidian-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fweidian-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fweidian-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hanson","download_url":"https://codeload.github.com/Hanson/weidian-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819403,"owners_count":21166477,"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-10-15T06:32:48.614Z","updated_at":"2025-04-14T04:11:51.154Z","avatar_url":"https://github.com/Hanson.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weidian-sdk\n\n微店的API接口包\n\n## Installation\n\n```\ncomposer require hanson/weidian\n```\n\n## Usage\n\n```\n$weidian = new Hanccc/Weidian('appkey', 'secret');\n//$weidian = new Hanccc/Weidian('appkey', 'secret', 'access_token');\n\n//上架举例\n\n$data = ['itemid' =\u003e 'itemid', 'opt' =\u003e 1];\n\n$weidian-\u003esend(Hanccc\\Services\\ItemService::itemOnSale($data));\n```\n\n### Notice\n\n文档有版本号限制,此包版本为 2016-6-20 的版本, 如有变动可手动设置版本号或提交issue通知本人变更\n```\n$weidian-\u003esend(Hanccc\\Services\\ItemService::itemOnSale($data, '1.0.1'));\n```\n\n### Document\n\n具体传参请查阅 [官方文档链接](http://wiki.open.weidian.com/) \n\n### 商品API\n```\n\nHanccc\\Services\\ItemService::getItem($data)\n\nHanccc\\Services\\ItemService::addItem($data)\n\nHanccc\\Services\\ItemService::listItem($data)\n\nHanccc\\Services\\ItemService::deleteItem($data)\n\nHanccc\\Services\\ItemService::addItemImage($data)\n\nHanccc\\Services\\ItemService::deleteItemImage($data)\n\nHanccc\\Services\\ItemService::updateItem($data)\n\nHanccc\\Services\\ItemService::addItemSku($data)\n\nHanccc\\Services\\ItemService::updateItemSku($data)\n\nHanccc\\Services\\ItemService::deleteItemSku($data)\n\nHanccc\\Services\\ItemService::getItemCate($data)\n\nHanccc\\Services\\ItemService::setItemCate($data)\n\nHanccc\\Services\\ItemService::cancelItemCate($data)\n\nHanccc\\Services\\ItemService::addItemCate($data)\n\nHanccc\\Services\\ItemService::updateItemCate($data)\n\nHanccc\\Services\\ItemService::deleteItemCate($data)\n\nHanccc\\Services\\ItemService::itemOnSale($data)\n\nHanccc\\Services\\ItemService::itemSetTop($data)\n\nHanccc\\Services\\ItemService::itemCancelTop($data)\n\nHanccc\\Services\\ItemService::delDiscountItem($data)\n\nHanccc\\Services\\ItemService::getCateList($data)\n```\n\n### 订单API\n```\nHanccc\\Services\\OrderService::getOrderList($data)\n\nHanccc\\Services\\OrderService::getOrder($data)\n\nHanccc\\Services\\OrderService::deliverOrder($data)\n\nHanccc\\Services\\OrderService::modifyExpress($data)\n\nHanccc\\Services\\OrderService::modifyOrder($data)\n\nHanccc\\Services\\OrderService::refundOrder($data)\n\nHanccc\\Services\\OrderService::cancelOrder($data)\n\nHanccc\\Services\\OrderService::delayOrder($data)\n```\n\n### 营销工具API\n```\nHanccc\\Services\\MarketService::getDiscountList($data)\n\nHanccc\\Services\\MarketService::setDiscountItem($data)\n\nHanccc\\Services\\MarketService::createCoupon($data)\n\nHanccc\\Services\\MarketService::deleteCoupon($data)\n\nHanccc\\Services\\MarketService::getCoupon($data)\n\nHanccc\\Services\\MarketService::getCouponList($data)\n\nHanccc\\Services\\MarketService::getCouponReport($data)\n\n```\n\n### CPS API\n```\nHanccc\\Services\\CpsService::searchItem($data)\n\nHanccc\\Services\\CpsService::getCpsItem($data)\n\nHanccc\\Services\\CpsService::getItemPublic($data)\n```\n\n### 微中心API\n```\nHanccc\\Services\\WeiService::listOrder($data)\n\nHanccc\\Services\\WeiService::getOrder($data)\n\nHanccc\\Services\\WeiService::deliverOrder($data)\n\nHanccc\\Services\\WeiService::modifyExpress($data)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fweidian-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanson%2Fweidian-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fweidian-sdk/lists"}