0.0.5 • Published 6 years ago

picotube v0.0.5

Weekly downloads
3
License
GPLv3.0
Repository
github
Last release
6 years ago

PicoTube: a tiny Youtube API library with promises

install

just run yarn add picotube

usage

we map exactly to the youtube API REST names, note that we only implement the list behaviour https://developers.google.com/youtube/v3/docs/

so to use the videos endpoint simply do

    import PicoTube from 'picotube'

    const pico = new PicoTube(API_KEY)
    pico.videos({
      id: 'QcQIaoHajoM'
    }).then(res => res.data)
      .then(info => {
        console.log('hello mom, i got this from youtube', info)
    })

note that we return the raw axios object, so errors live in response.data.error

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago