fetch-client-node-sdk
v1.1.0
Published
A wrapper around `isomorphic-fetch` that provides utility functions
Downloads
36
Readme
fetch-client-node-sdk
A wrapper around isomorphic-fetch
that provides utility functions
Installation
npm install fetch-client-node-sdk --save
Usage
TypeScript Example
import { fetchClient } from 'fetch-client-node-sdk';
export class MyService {
createUser(req: CreateUserRequest): Promise<CreateUserResponse> {
return fetchClient.post<CreateUserResponse>(`https://my-api/users`, {'content-type': 'application/json'}, req);
}
}