Vonage's type and enum definitions module for server-side HTTP interactions.
npm install @vonage/vetch!GitHub Workflow Status  !Latest Release  ![License][license]
This is the Vonage Vetcher SDK for Node.js used to wrap a request using node-fetch to call Vonage APIs. To use it you will need a Vonage account. Sign up [for free at vonage.com][signup].
For full API documentation refer to developer.vonage.com.
* Installation
* Usage
* Options
* Testing
``bash`
npm install @vonage/vetch
`bash`
yarn add @vonage/vetch
Vetch will return a VetchResponse
`js
const { request } = require('@vonage/vetch');
const response = await request({
url: 'https://rest.nexmo.com/account/numbers'
})
console.log(response.data);
// Will output the json data from the API response
`
options are a superset from the request package. See VetchOptions for more detail
Run:
`bash``
npm run test
[signup]: https://dashboard.nexmo.com/sign-up?utm_source=DEV_REL&utm_medium=github&utm_campaign=node-server-sdk
[license]: ../../LICENSE.txt