@flipdish/api-client-typescript
v1.1.939
Published
Typescript Flipdish API client
Downloads
3,669
Readme
@flipdish/api-client-typescript
Typescript Flipdish API client
Installation
npm install @flipdish/api-client-typescript --save
yarn add @flipdish/api-client-typescript
bower install @flipdish/api-client-typescript --save
Usage
TypeScript
import { StoresApi } from '@flipdish/api-client-typescript';
let storesApi = new StoresApi();
storesApi.accessToken = '<your_access_token>';
storesApi.getStores('mexican cafe', 1, 20)
.then(response => {
response.body.Data.map(store => console.log(store));
}).catch(error => {
console.error(error);
});