New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@hushpoison/vimeo-api

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hushpoison/vimeo-api

Viemo Node API

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

npm License

Interacting with the Vimeo API using Node.js

Get started with the Vimeo API

Install the Node.js library

To install Node.js, run the following command:

 npm install @hushpoison/vimeo-api
 vimeoUploadLink(fileLength: number, fileName: string)
 

Upload Video Blob (url = genarated url from above function)

 uploadBlob(file: Buffer, url: string, s:() => void , e:(error:string) => void)
 

Get Thubnails

 thumbnailForPrivateVideo(id: string, thumbnailWidth: number)
 thumbnailForPublicVideo(id: string, thumbnailWidth: VideoSize)

Delete video(id = vimeo video id)

 deleteVideo(id: string)
 

Insert Video To Folder in Vimeo

 moveToFolder(id: string, folderId: string)
 

Advanced examples

let data = readFileSync('./lib/example/mnv.mp4');
const t = Vimeo({
  token: '--------------------',
});

(async () => {
  try {
    const {uploadLink,uri,videoUrl} = await t.vimeoUploadLink(filesize, 'filename'); //filesize is (buffer length) size of the upload file
     t.uploadBlob(file,uploadLink,()=>console.log(success),(e:string)=>console.log(error)) //file must be buffer or blob
  } catch (error) {
    console.log(error);
  }
})();

(async () => {
  try {
    const c = await t.transcodeStatus('726466895');
    const y = await t.thumbnailForPrivateVideo('726466895', 640);
  } catch (error) {
    console.log(error);
  }
})();

Credits

https://github.com/Applicafroguy/vimeo-uploader

Keywords

vimeo

FAQs

Package last updated on 20 Jul 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