{"id":37380857,"url":"https://github.com/subscribepro/subscribepro-js","last_synced_at":"2026-01-16T05:07:33.888Z","repository":{"id":64177210,"uuid":"566507459","full_name":"subscribepro/subscribepro-js","owner":"subscribepro","description":"Subscribe Pro JavaScript Client https://www.subscribepro.com/","archived":false,"fork":false,"pushed_at":"2023-01-16T18:16:13.000Z","size":188,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-23T02:58:14.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/subscribepro.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":"2022-11-15T20:24:42.000Z","updated_at":"2023-11-10T10:45:26.000Z","dependencies_parsed_at":"2023-02-10T05:31:32.856Z","dependency_job_id":null,"html_url":"https://github.com/subscribepro/subscribepro-js","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/subscribepro/subscribepro-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscribepro%2Fsubscribepro-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscribepro%2Fsubscribepro-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscribepro%2Fsubscribepro-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscribepro%2Fsubscribepro-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subscribepro","download_url":"https://codeload.github.com/subscribepro/subscribepro-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscribepro%2Fsubscribepro-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T05:07:33.201Z","updated_at":"2026-01-16T05:07:33.877Z","avatar_url":"https://github.com/subscribepro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subscribe Pro JavaScript Client\n\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/subscribepro/subscribepro-js/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/subscribepro/subscribepro-js/tree/main)\n\nThis is our JavaScript client library for accessing the Subscribe Pro REST API. Our API documentation is available at https://docs.subscribepro.com/technical/rest-api/.\n\nTo learn more about Subscribe Pro you can visit us at https://www.subscribepro.com/.\n\n## Installation\n\nThis library is packaged as an [NPM package](https://www.npmjs.com/package/@subscribepro/sdk). You can install with NPM through the standard method:\n\n```\nnpm install @subscribepro/sdk\n```\n\nIf you are using YARN you add this library to your package.json with:\n\n```\nyarn add @subscribepro/sdk\n```\n\n## Usage\n\nAs this is packaged as a standard NPM typescript module the import should be familiar:\n\n```javascript\nimport { SubscribePro } from '@subscribepro/sdk';\n\nSubscribePro.configure({\n  accessToken: 'ACCESS_TOKEN',\n  environmentKey: 'ENVIRONMENT_KEY'\n})\n```\n\nThe API is split in to two versions that reflect the SubscribePro API versioning. The V2 and V3 APIs have overlapping functionality, but there are capabilities that can only be found in one or the other. The definitive documentation can be found on the SubscribePro docs:\n\n- [V1 and V2 API Docs](https://api.subscribepro.com/docs/rest) (With the exception of the vault endpoints which are both V1 and V2, all endpoints are V2)\n- [V3 API Docs](https://api.subscribepro.com/docs)\n\n### Example (Retrieve and Update a Product V3 API)\n\n```javascript\nimport { SubscribePro } from '@subscribepro/sdk';\n\nSubscribePro.configure({\n  accessToken: 'ACCESS_TOKEN',\n  environmentKey: 'ENVIRONMENT_KEY'\n})\n\nlet product = SubscribePro.V3.Products.findById({id: '12345'});\nSubscribePro.V3.Products.update({id: product.id, data: {name: `${product.name} (2022)`}});\n```\n\n### Example (Retrieve and Update a Product V2 API)\n\n```javascript\nimport { SubscribePro } from '@subscribepro/sdk';\n\nSubscribePro.configure({\n  accessToken: 'ACCESS_TOKEN',\n  environmentKey: 'ENVIRONMENT_KEY'\n})\n\nlet product = SubscribePro.V2.Products.getOne({id: '12345'});\nSubscribePro.V2.Products.updateOne({id: product.id, data: {name: `${product.name} (2022)`}});\n```\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubscribepro%2Fsubscribepro-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubscribepro%2Fsubscribepro-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubscribepro%2Fsubscribepro-js/lists"}