Skip to content

ZacharyEggert/sound-tank

Repository files navigation

Sound Tank

A library to interface with Reverb's API programmatically.

To get started, just run npm install sound-tank in your project's directory, or yarn add sound-tank if you prefer Yarn.

Example Usage

import Reverb from 'sound-tank';

const { REVERB_API_KEY } = process.env;

(async () => {
  const reverb = new Reverb({ apiKey: REVERB_API_KEY });

  const response = await reverb.getMyListings({
    perPage: 10,
    page: 1,
    state: 'all',
  });

  const { listings } = response.data;

  listings.forEach((listing) => {
    console.log(listing.title);
  });
})();