{"id":19647210,"url":"https://github.com/lovefc/node-pddapi","last_synced_at":"2026-05-15T14:36:31.089Z","repository":{"id":57321335,"uuid":"306567131","full_name":"lovefc/node-pddapi","owner":"lovefc","description":"node版-拼多多开放平台api类库","archived":false,"fork":false,"pushed_at":"2020-10-23T08:35:13.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-04T00:41:51.746Z","etag":null,"topics":["node-pdd","pdd","pinduoduo","pinduoduo-sdk"],"latest_commit_sha":null,"homepage":"https://github.com/lovefc/node-pddapi","language":"JavaScript","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":"2020-10-23T07:55:37.000Z","updated_at":"2021-05-10T14:09:42.000Z","dependencies_parsed_at":"2022-08-25T21:01:32.119Z","dependency_job_id":null,"html_url":"https://github.com/lovefc/node-pddapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lovefc/node-pddapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fnode-pddapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fnode-pddapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fnode-pddapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fnode-pddapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovefc","download_url":"https://codeload.github.com/lovefc/node-pddapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovefc%2Fnode-pddapi/sbom","scorecard":{"id":600030,"data":{"date":"2025-08-11","repo":{"name":"github.com/lovefc/node-pddapi","commit":"b55704d2eab95b6f066f880fc6015bf176f47ed4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T00:11:03.728Z","repository_id":57321335,"created_at":"2025-08-21T00:11:03.728Z","updated_at":"2025-08-21T00:11:03.728Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33070211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["node-pdd","pdd","pinduoduo","pinduoduo-sdk"],"created_at":"2024-11-11T14:42:53.680Z","updated_at":"2026-05-15T14:36:31.070Z","avatar_url":"https://github.com/lovefc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 拼多多开放平台API类库-node\n\nnode封装的拼多多api类库，简单好用，配合文档食用，不用再去记函数名以及参数\n\n### 安装\n\n````\nnpm install pddapi\n````\n\n### 食用方法\n\n````\nconst _pddapi = require('pddapi');\n// 实例化这个类库,传参数,实际使用中,要用到access_token,refresh_token\n// 这两个参数是授权后得到的,参考auto.js授权案例,得到后的token的json字符串,自己去解析,自己去保存,我这里不在写死保存在文件里面了\nlet pddapi = new _pddapi({\n    \"client_id\": 'xxx',\n    \"client_secret\": 'xxxx',\n    \"backurl\": 'xxxx',\n    \"access_token\": 'xxxx',\n    \"refresh_token\": 'xxxx',\n});\n\n// 获取拼多多订单\n// 文档链接:https://open.pinduoduo.com/application/document/api?id=pdd.order.list.get\nlet stime = (new Date(\"2020/10/21 00:00:00\")).getTime() / 1000;\nlet etime = (new Date(\"2020/10/21 23:00:00\")).getTime() / 1000;\n\n// 要传递的参数,请参考文档,里面有可以不填的,必填的必须要填\nlet data = {\n    \"order_status\": 5,\n    \"refund_status\": 5,\n    \"start_confirm_at\": stime,\n    \"end_confirm_at\": etime,\n    \"page\": 1,\n    \"page_size\": 100\n};\n\n// 使用async,await可以同步操作,可以放在其它异步函数里面使用,或者匿名的async回调里面\n(async function result(data) {\n    // 这里使用的方法就是拼多多的api接口名\n    // 注意把api接口名中的点号换成下划线即可，传参请参考文档\n    let result = await pddapi.pdd_order_list_get(data);\n    result = JSON.parse(result.trim());\n    console.log(result.order_list_get_response);\n})(data)\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%2Fnode-pddapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovefc%2Fnode-pddapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovefc%2Fnode-pddapi/lists"}