1.1.1 • Published 5 years ago

@fitmentgroup/viper-api-js v1.1.1

Weekly downloads
13
License
MIT
Repository
-
Last release
5 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.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.1-7

5 years ago

1.0.1-6

5 years ago

1.0.1-5

5 years ago

1.0.1-4

5 years ago

1.0.1-3

5 years ago

1.0.1-2

5 years ago

1.0.1-1

5 years ago

1.0.1-0

5 years ago

1.0.0

5 years ago