1.1.2-0 • Published 4 years ago

@fitmentgroup/viper-api-js-client v1.1.2-0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

viper-api-js

This is the API client for our ViperApi hosted at api.fitmentgroup.com.

  • lightweight
  • client-agnostic (axios and ky are supported at the moment)
  • camel cases responses and pascal cases requests
  • type checks arguments
  • tested

Usage

import axios from 'axios' // or your own axios instance
import { getTrendBrands } from 'viper-api-js/trends'

// This errors saying yearStart and monthStart should be defined
await getTrendBrands()

const yearStart = 2019
const monthStart = 1
const brands = await getTrendBrands({ yearStart, monthStart }).axios(axios)
// Or with ky
const brands = await getTrendBrands({ yearStart, monthStart }).ky(ky)
1.1.2-2

4 years ago

1.1.2-1

4 years ago

1.1.2-0

4 years ago