Skip to content

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semantic-release Build Status

#We Vision Library

Front end library to perform HTTP calls to the we vision 2 api.

Instalation

npm i --save we-vision-library

##Usage

ES6:

  import {searchByImage, searchById, showProducts, getCategoryData} from 'we-vision-library'

ES5:

  'use strict';

  var _weVisionLibrary = require('we-vision-library');

All endPoints accept two arguments as literal Objects and return a Promise that will be resolved with the response body, or will be rejected if an unexpected error occurs:

// All endpoints have the same signature, this is just an example
searchById(body: Object, headers: Object)
	.then(body => console.log(body))
	.catch(err => console.error(err.message))

:)

About

Front end library to perform http calls to Wide Eyes' API

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages