{"id":31545490,"url":"https://github.com/centre-for-effective-altruism/node-gocardless","last_synced_at":"2025-10-04T14:49:38.736Z","repository":{"id":57279788,"uuid":"89706813","full_name":"centre-for-effective-altruism/node-gocardless","owner":"centre-for-effective-altruism","description":"Lightweight API wrapper for making requests to GoCardless","archived":false,"fork":false,"pushed_at":"2017-06-23T03:33:58.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-11T00:16:57.217Z","etag":null,"topics":["api","gocardless","wrapper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/centre-for-effective-altruism.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-28T13:06:26.000Z","updated_at":"2018-12-25T13:07:38.000Z","dependencies_parsed_at":"2022-09-18T13:41:29.142Z","dependency_job_id":null,"html_url":"https://github.com/centre-for-effective-altruism/node-gocardless","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/centre-for-effective-altruism/node-gocardless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-effective-altruism%2Fnode-gocardless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-effective-altruism%2Fnode-gocardless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-effective-altruism%2Fnode-gocardless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-effective-altruism%2Fnode-gocardless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centre-for-effective-altruism","download_url":"https://codeload.github.com/centre-for-effective-altruism/node-gocardless/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centre-for-effective-altruism%2Fnode-gocardless/sbom","scorecard":{"id":270984,"data":{"date":"2025-08-11","repo":{"name":"github.com/centre-for-effective-altruism/node-gocardless","commit":"64d7f82ca1e0a4d9a53d8e269534eda183696b83"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/17 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":"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":"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":"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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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-17T13:20:36.159Z","repository_id":57279788,"created_at":"2025-08-17T13:20:36.159Z","updated_at":"2025-08-17T13:20:36.159Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278328163,"owners_count":25968899,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","gocardless","wrapper"],"created_at":"2025-10-04T14:49:37.549Z","updated_at":"2025-10-04T14:49:38.729Z","avatar_url":"https://github.com/centre-for-effective-altruism.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nLightweight API wrapper for making requests to [GoCardless](https://gocardless.com/).\n\nSee the [GoCardless docs](https://developer.gocardless.com/) for a list of valid resources.\n\n## Installation\n\n```\nnpm install --save gocardless-api\n```\n\n## Usage\n\n### Constructor\n\n**`new GoCardless()`** _`=\u003e GoCardlessClient`_\n\nCreates a new client instance using your GoCardless access token\n\n```js\nconst gocardless = new GoCardless(YOUR_ACCESS_TOKEN)\n```\n\n### Client Methods\n\n**`.request(options)`** _`=\u003e Promise(GoCardlessResource)`_\n\nMakes an API request, then returns the resulting resource.\n\n```js\nconst GoCardless = require('gocardless-api')\nconst gocardless = new GoCardless(YOUR_ACCESS_TOKEN)\ngocardless.request({\n    method: 'GET',\n    resource: 'customers'\n    query: {\n        limit: 10,\n        after: 'CU123'\n    }\n})\n.then(customers =\u003e {\n    // customers =\u003e {\n    //  \"meta\": {\n    //      \"cursors\": {\n    //        \"before\": \"CU000\",\n    //        \"after\": \"CU456\",\n    //      },\n    //      \"limit\": 10\n    //    },\n    //    \"customers\": [{\n    //      \"id\": \"CU123\",\n    //      \"created_at\": \"2014-05-08T17:01:06.000Z\",\n    //      \"email\": \"user@example.com\",\n    //      \"given_name\": \"Frank\",\n    //      \"family_name\": \"Osborne\",\n    //      \"address_line1\": \"27 Acer Road\",\n    //      \"address_line2\": \"Apt 2\",\n    //      \"address_line3\": null,\n    //      \"city\": \"London\",\n    //      \"region\": null,\n    //      \"postal_code\": \"E8 3GX\",\n    //      \"country_code\": \"GB\",\n    //      \"language\": \"en\",\n    //      \"metadata\": {\n    //        \"salesforce_id\": \"ABCD1234\"\n    //      }\n    //    }, {\n    //    ...\n    //    }]\n    //  }\n})\n\n```\n\nThe request will automatically add the following headers:\n- `Authorization: Bearer \u003cYOUR_ACCESS_TOKEN\u003e`\n- `GoCardless-Version: 2015-07-06`\n\nYou can override these headers using `options.headers` (see below)\n\n**request `options` Object:**\n\n- `method` _(String)_: HTTP request method. One of `GET`, `PUT`, `PATCH` or `DELETE`\n- `resource` _(String)_: Path to the requested resource (e.g. `customers`, `mandates/123`)\n- `data` _(Object)_: Data to accompany `PUT` or `PATCH` requests\n- `query` _(Object)_: Query string as `key=\u003evalue` pairs (e.g. `{ limit: 10, after: ID789 }` becomes `?limit=10\u0026after=ID789`)\n- `options` _(Object)_: Additional request options. Passed directly to [`needle`](https://www.npmjs.com/package/needle).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentre-for-effective-altruism%2Fnode-gocardless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentre-for-effective-altruism%2Fnode-gocardless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentre-for-effective-altruism%2Fnode-gocardless/lists"}