# @hushpoison/vimeo-api

> Viemo Node API

Latest version **1.2.0** (published 2022-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hushpoison/vimeo-api
pnpm add @hushpoison/vimeo-api
yarn add @hushpoison/vimeo-api
bun add @hushpoison/vimeo-api
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-07-20 |
| First published | 2022-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 34.2 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ramesh Shanilka |
| Maintainers | rameshshanilka |
| Keywords | vimeo, api, node, typescript |

## Links

- npm: https://www.npmjs.com/package/@hushpoison/vimeo-api
- Repository: https://github.com/prshanilka/vimeo-api
- Homepage: https://github.com/prshanilka/vimeo-api#readme
- Issues: https://github.com/prshanilka/vimeo-api/issues
- npm.io page: https://npm.io/package/@hushpoison/vimeo-api

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [tus-js-client](https://npm.io/package/tus-js-client.md) ^3.0.0-0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2022-07-20
- 1.1.0 — 2022-07-07
- 1.0.11 — 2022-07-05
- 1.0.10 — 2022-07-05
- 1.0.9 — 2022-07-05
- 1.0.8 — 2022-07-05
- 1.0.7 — 2022-07-05
- 1.0.6 — 2022-07-05
- 1.0.5 — 2022-07-04
- 1.0.4 — 2022-07-04
- 1.0.3 — 2022-07-04
- 1.0.2 — 2022-07-04
- 1.0.1 — 2022-07-03
- 1.0.0 — 2022-07-03

## README

# <img src="https://user-images.githubusercontent.com/33762/33720344-abc20bb8-db31-11e7-8362-59a4985aeff0.png" width="250" />

[![npm](https://img.shields.io/npm/v/vimeo.svg?style=flat-square)](https://www.npmjs.com/package/vimeo)
[![License](https://img.shields.io/github/license/vimeo/vimeo.js.svg)](https://www.npmjs.com/package/vimeo)

# 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



### Genarate Upload Link 
     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     
```ts
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

---
_Source: https://npm.io/package/@hushpoison/vimeo-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
