{"id":19647214,"url":"https://github.com/lovefc/pddapi","last_synced_at":"2025-07-12T12:40:10.494Z","repository":{"id":62519248,"uuid":"199958301","full_name":"lovefc/pddapi","owner":"lovefc","description":"拼多多开放平台API类库","archived":false,"fork":false,"pushed_at":"2020-08-17T02:27:39.000Z","size":29,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T09:23:16.687Z","etag":null,"topics":["pdd","pddapi","pingduoduo"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/lovefc.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-08-01T02:03:34.000Z","updated_at":"2025-04-04T17:25:51.000Z","dependencies_parsed_at":"2022-11-02T14:46:04.692Z","dependency_job_id":null,"html_url":"https://github.com/lovefc/pddapi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fpddapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fpddapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fpddapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fpddapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovefc","download_url":"https://codeload.github.com/lovefc/pddapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251338638,"owners_count":21573588,"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":["pdd","pddapi","pingduoduo"],"created_at":"2024-11-11T14:42:54.726Z","updated_at":"2025-04-28T15:31:25.108Z","avatar_url":"https://github.com/lovefc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 拼多多开放平台API类库\n\nphp封装的拼多多api类库，简单好用，配合文档食用，不用再去记函数名以及参数，还会自动检查接口权限（依赖于授权后token的权限列表）\n\n\n### 安装\n\n直接下载源码或者使用 composer 安装\n\n````\n{\n    \"require\": {\n        \"lovefc/pddapi\": \"0.0.2\"\n    }\t\t\n}\n````\n\n### 食用方法\n\n````\n\n// 接口配置\n$config = array(\n    'client_id' =\u003e '', //client_id\n    'client_secret' =\u003e '', //client_secret\n    'backurl' =\u003e 'http://www.xxxx.com/token.php', //回调地址\n    'data_type' =\u003e 'json', // 返回数据格式\n    'pdd_token_file' =\u003e __DIR__ . '/pdd_token.txt', // token存储文件地址\n);\n\n// 实例化参数，有两个，都是数组，第二个参数可以传授权后的token的json字符串，不传会读取token文件，建议授权后使用\n$obj = new Pdd\\Api($config);\n\n// 参数\n$data = array(\n    'order_status' =\u003e 1,\n    'page' =\u003e 1,\n    'page_size' =\u003e 100  \n);\n\n// 这里使用的函数就是拼多多的api接口名\n// 参考 https://open.pinduoduo.com/#/apidocument\n// 注意把api接口名中的点号换成下划线即可,传参请参考文档\n\n$json = $obj-\u003epdd_order_number_list_get($data);\n\necho $json;\n\n````\n\n### 交流讨论\n\nQQ群号：474310505\n\n![avatar](/qq.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovefc%2Fpddapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovefc%2Fpddapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovefc%2Fpddapi/lists"}