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

node-wistia

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-wistia

A Node.js wrapper for the Wistia API. Upload your videos to Wistia and get your account data

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-wistia

downloadsBadge versionBadge

Includes

Installation

npm install node-wistia

Usages

Upload Video

With File
const Wistia = require('node-wistia');
const fs = require('fs');

let wistia = new Wistia('****************************************************************');

async function uploadVideo() {
    let data = await wistia.uploadVideo({
        file: fs.writeFileSync('test.mp4'),
        name: 'Test Video Uploaded With File',
        project_id: "*********"
    })
    console.log(data)
};
With URL
const Wistia = require('node-wistia');

let wistia = new Wistia('****************************************************************');

async function uploadVideo() {
    let data = await wistia.uploadVideo({
        url: 'https://www.website.com/test.mp4',
        name: 'Test Video Uploaded With File',
        project_id: "*********"
    })
    console.log(data)
};

Get Account Datas

let account = await wistia.accountData();
console.log(account);

let stats = await wistia.accountStats();
console.log(stats);

Get Media Datas

let medias = await wistia.getMedias();
console.log(medias);

let media = await wistia.getMedia('********');
console.log(media); 

Get Project Datas

let projects = await wistia.getProjects();
console.log(projects);

let project = await wistia.getProject('********');
console.log(project);

Keywords

FAQs

Package last updated on 19 Sep 2022

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