Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flowplayer-drive

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowplayer-drive

NPM module and CLI tool for managing videos on Flowplayer Drive

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

flowplayer-drive

NPM module and CLI tool for managing videos on Flowplayer Drive

Installation

npm install flowplayer-drive

If you want to use it as a command line tool use the global switch (might need sudo depending on your environment).

npm install -g flowplayer-drive

Usage

Node library

var drive = require('flowplayer-drive');
drive.login('john.doe@gmail.com', 's3cr3t').then(function(user) {
  console.log('Logged in as ' + user.email);
  return drive.uploadVideo(user.authcode, '/path/to/file.mp4'), { title: 'My cool video' });
}).catch(function(err) {
  console.error('Something went wrong', err);
});
Methods
  • login(user, pass) - Calls the login endpoint, returns user information along with an authentication token doc
  • uploadVideo(authcode, file, params) - Uploads a file to Drive doc
  • videos(authcode) - List all videos doc

Command line tool

Examples:

Upload a video file

flowplayer upload videos/my-video.mp4

Upload all MP4 files from a directory

flowplayer upload videos/*.mp4

List videos from Drive API as JSON

flowplayer list
Commands
  • flowplayer - prints the usage information
  • flowplayer login - prompts for login credentials and caches them for later use
  • flowplayer upload <file1> [<file2> <file3>] - Upload one ore more videos to the service
  • flowplayer list - List all videos

Tip: combine the command line tool with jq to process and analyze data:

$ flowplayer list | jq -c 'sort_by(.viewCount) | reverse | .[] | {title: .title, viewCount: .viewCount}'
{"title":"Hero_video.mpeg","viewCount":67982}
{"title":"2013-05-25 10.29.08.mp4","viewCount":184}
...

Keywords

FAQs

Package last updated on 07 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc