@trailervote/fetch

3.0.3 • Public • Published

Trailervote Fetch

Build Status NPM Package Version Maintainability

The TrailerVote Fetch package is the official interface to communicate with the TrailerVote product service. It allows you to keep your code simple and not deal with the HTTP suite.

Installation

yarn add '@trailervote/fetch'

And then execute:

$ yarn

Usage

The current JS package does not have the same fluent API as the ruby package, as of the current release, but might in the future.

import { fetch } from '@trailervote/fetch/dist/audio_fragment'

const response = await fetch(url)

In the /dist folder you'll find all the types you can fetch. Currently you'll get generic types back, not based on the media type, but this will be changed in the future. Each module has a main export fetch and a named fetchModule such as fetchProduct. These are aliases.

Contributing

Deployments must be done with yarn pack and yarn publish instead of npm equivalents.

Bug reports and pull requests are welcome on GitHub at TrailerVote/trailervote-api-clients

Readme

Keywords

none

Package Sidebar

Install

npm i @trailervote/fetch

Weekly Downloads

1

Version

3.0.3

License

MIT

Unpacked Size

91.7 kB

Total Files

92

Last publish

Collaborators

  • vincentrbbmnd
  • sleeplessbyte
  • thexa4