{"id":19404453,"url":"https://github.com/seven-io/js-client","last_synced_at":"2025-06-18T02:37:12.340Z","repository":{"id":40773466,"uuid":"234080886","full_name":"seven-io/js-client","owner":"seven-io","description":"Official JavaScript API Client for seven.io","archived":false,"fork":false,"pushed_at":"2025-04-28T09:32:45.000Z","size":2916,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-26T16:13:53.945Z","etag":null,"topics":["api-client","cnam","hlr","mnp","rcs","sdk","sms","text2speech","tts"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@seven.io/client","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/seven-io.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-15T12:56:59.000Z","updated_at":"2025-04-28T09:32:49.000Z","dependencies_parsed_at":"2023-02-11T03:30:26.485Z","dependency_job_id":"7e6b7d69-c95f-403c-a816-37b76b0d2ad6","html_url":"https://github.com/seven-io/js-client","commit_stats":{"total_commits":81,"total_committers":3,"mean_commits":27.0,"dds":"0.11111111111111116","last_synced_commit":"c86d025c2f7ab0e74dd004004a6e661afd84ab54"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seven-io/js-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fjs-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fjs-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fjs-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fjs-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seven-io","download_url":"https://codeload.github.com/seven-io/js-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fjs-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260475935,"owners_count":23014942,"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":["api-client","cnam","hlr","mnp","rcs","sdk","sms","text2speech","tts"],"created_at":"2024-11-10T11:34:59.036Z","updated_at":"2025-06-18T02:37:07.307Z","avatar_url":"https://github.com/seven-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://www.seven.io/wp-content/uploads/Logo.svg\" width=\"250\" /\u003e\r\n\r\n# Official JavaScript API Client for [seven](https://www.seven.io)\r\n\r\n## Installation\r\n\r\n**This library relies on the global fetch API. To use this library with\r\nNode.js \u003c 18, [node-fetch](https://github.com/node-fetch/node-fetch) is required.**\r\n\r\nFor compatibility with Node.js versions \u003c 12, please also install\r\nthe [globalThis polyfill](https://github.com/es-shims/globalThis).\r\n\r\n### Via NPM\r\n\r\n```bash\r\nnpm install @seven.io/client\r\n```\r\n\r\n### Via Yarn\r\n\r\n```bash\r\nyarn add @seven.io/client\r\n```\r\n\r\n### Browser\r\n\r\n```html\r\n\r\n\u003cscript src='https://unpkg.com/browse/@seven.io/client/dist/seven-client.umd.cjs'\u003e\u003c/script\u003e\r\n```\r\n\r\n## Example\r\n\r\n```javascript\r\n// const globalThis = require('globalthis')(); // uncomment if NodeJS \u003c NodeJS versions \u003c 12\r\n// globalThis.fetch = require('node-fetch').default; // uncomment in NodeJS environments\r\n// const {BalanceResource, Client} = require('@seven.io/client'); // uncomment in NodeJS environments\r\n\r\nimport {BalanceResource, Client} from '@seven.io/client'\r\n\r\nconst client = new Client({apiKey: 'MY_SUPER_SECRET_SEVEN_IO_API_KEY!'})\r\nconst balanceResource = new BalanceResource(client)\r\nbalanceResource.get()\r\n    .then(console.log)\r\n    .catch(console.error);\r\n```\r\n\r\n## Tests\r\n\r\n1. `git clone https://github.com/seven-io/js-client seven-client`\r\n2. `cd seven-client \u0026\u0026 npm install`\r\n3. `SEVEN_API_KEY=\u003cApiKey\u003e SEVEN_SIGNING_SECRET=\u003cSigningSecret\u003e npm run test`\r\n\r\nSet `SEVEN_DEBUG=1` for details printed to `stdout`.\r\n\r\n### Support\r\n\r\nNeed help? Feel free to [contact us](https://www.seven.io/en/company/contact/).\r\n\r\n[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fjs-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven-io%2Fjs-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fjs-client/lists"}