{"id":24790620,"url":"https://github.com/jonoise/onvo-client","last_synced_at":"2025-10-12T14:31:05.120Z","repository":{"id":235430271,"uuid":"790584850","full_name":"jonoise/onvo-client","owner":"jonoise","description":"Object Oriented Node.js HTTP Client for the OnvoPay API ","archived":false,"fork":false,"pushed_at":"2025-01-15T06:31:19.000Z","size":233,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T08:45:41.751Z","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/jonoise.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-04-23T06:38:28.000Z","updated_at":"2025-01-15T06:31:21.000Z","dependencies_parsed_at":"2024-04-23T11:12:10.733Z","dependency_job_id":"e2ea4c8c-9a12-434a-9149-2eef2afe7cf2","html_url":"https://github.com/jonoise/onvo-client","commit_stats":null,"previous_names":["jonoise/onvo-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fonvo-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fonvo-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fonvo-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fonvo-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonoise","download_url":"https://codeload.github.com/jonoise/onvo-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236229941,"owners_count":19115713,"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":[],"created_at":"2025-01-29T18:17:16.890Z","updated_at":"2025-10-12T14:30:59.777Z","avatar_url":"https://github.com/jonoise.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Onvo Client\n\nOnvo Client es un cliente de HTTP orientado a objetos para **Node.js** escrito en Typescript para interactuar de forma fácil con la [API de Onvo](https://docs.onvopay.com).\n\n## Installation\n\n### npm\n\n```bash\nnpm install onvo-client\n```\n\n### yarn\n\n```bash\nyarn add onvo-client\n```\n\n### Usage\n\nLa librería está diseñada para ser usada en un entorno de servidor, no incluya esta librería en el frontend de su aplicación ya que expondría su clave secreta.\nLa clave secreta deber ser guardada en una variable de entorno.\n\n#### Create client and export it\n\n@lib/onvo.ts\n\n```typescript\nimport { OnvoClient } from 'onvo-client'\n\nexport const onvo = new OnvoClient({ api_key: 'YOUR_SECRET_KEY' })\n```\n\n#### Use the client in your endpoints\n\n@routes/onvo/customers.ts\n\n```js\nimport { onvo } from '../lib/onvo'\n\nexport const getCustomer = async (id) =\u003e {\n  try {\n    const customer = await onvo.customers.get(id)\n    return customer\n  } catch (error) {\n    return error\n  }\n}\n```\n\n## Resources\n\nTodos los recursos disponibles en la API de Onvo están disponibles como métodos en el cliente excepto el recurso bajo el path `shoppers`. Entre ellos\n\n- `customers`\n- `checkouts`\n- `payment-intents`\n- `payments-methods`\n- `products`\n- `prices`\n- `subscriptions`\n- `refunds`\n- `shipping-rates`\n\nPara más información sobre los métodos disponibles en cada recurso, puedes consultar la [documentación oficial de Onvo](https://docs.onvopay.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonoise%2Fonvo-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonoise%2Fonvo-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonoise%2Fonvo-client/lists"}