0.1.0 • Published 7 years ago

vidme.js v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

VidmeJs

a javascript library to talk to vidme api

about 75% of api calls have been implemented

still under heavy development

Todo

  • add rest of api
  • add OO classes
  • more and better tests
  • docs

Example usage

Evertime this runs it will give you a random new video

const VidmeJs = require('vidme.js');

// create a client
const Client = new VidmeJs.Client();

const offset = Math.random() * 5000;

// make an api call for new videos
// with a limit of 1 video
// and a random offset
// call it with exec()
Client.api.videos.newVideos().limit(1).offset(offset).exec()
.then((responce) =>
{
  // log it
  console.log(responce.videos[0].full_url);
});

links

something something something...

to be continued