# aliyun-mts

> aliyun mts sdk

Latest version **1.0.6** (published 2017-06-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install aliyun-mts
pnpm add aliyun-mts
yarn add aliyun-mts
bun add aliyun-mts
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-06-01 |
| First published | 2017-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yeliex |
| Maintainers | yeliex |
| Keywords | aliyun, mts |

## Links

- npm: https://www.npmjs.com/package/aliyun-mts
- Repository: https://github.com/yeliex/aliyun-mts
- Homepage: https://github.com/yeliex/aliyun-mts#readme
- Issues: https://github.com/yeliex/aliyun-mts/issues
- npm.io page: https://npm.io/package/aliyun-mts

## Dependencies (3)

- [qs](https://npm.io/package/qs.md) ^6.4.0
- [autofetch](https://npm.io/package/autofetch.md) ^1.3.4
- [node.date-time](https://npm.io/package/node.date-time.md) ^1.2.1

## Recent versions

- 1.0.6 (latest) — 2017-06-01
- 1.0.4 — 2017-03-14
- 1.0.3 — 2017-03-14
- 1.0.2 — 2017-03-14
- 1.0.1 — 2017-03-14
- 1.0.0 — 2017-03-14

## README

# aliyun-mts

[![npm](https://img.shields.io/npm/v/aliyun-mts.svg?style=flat-square)](https://www.npmjs.com/package/aliyun-mts)

aliyun mts sdk

阿里云 MTS媒体转码服务 SDK

## Installation
```
$ npm install aliyun-mts
```

## Usage
```js
const { SubmitJobs, queryJobList, listJob, cancelJob } = require('aliyun-mts')({
  AccessKeyId, // your access key id
  AccessKeySecret // your access secret
});
 
// new submit job
// arguments: https://help.aliyun.com/document_detail/29253.html?spm=5176.doc29227.6.603.AX3nBo
const job = new SubmitJobs({
  Input: {  // Input Object 
    Bucket, // input bucket name
    Location: "oss-cn-hangzhou", // input bucket location
    Object: 'test.mp4' // file path
  },
  OutputBucket, // output bucket name
  Outputs: [{
      OutputObject: "temp", // output file name (with out postfix if m3u8)
      TemplateId: "S00000001-100030" // output template
  }],
  OutputLocation: "oss-cn-hangzhou", // output bucket location
  PipelineId // pipeline id
});
 
// start job (return promise)
job.start();
 
// cancel job
cancelJob({
  jobId // a job id
});
 
// query jobs
queryJobList({
  jobIds: ['id1', 'id2']
});
 
// get jobs list
listJob();

```

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