Implements services providing upload methods to various services:
- Youtube
- S3
- ... TODO
npm i @kapitchi/bb-content-provider
TODO
Build
npm run build
Generates README.md
npm run docs
Tests
npm test
- ProviderS3
S3 service
- ProviderYoutube
Youtube service
S3 service
Get upload method
Kind: instance method of ProviderS3
Param | Type | Description |
---|---|---|
params | Object |
|
params.key | string |
|
params.accessKeyId | string |
|
params.secretAccessKey | string |
|
params.region | string |
|
params.bucket | string |
|
params.expires | number |
|
params.privacy | string |
Options: 'private', 'public-read', 'public-read-write', 'aws-exec-read', 'authenticated-read', 'bucket-owner-read', 'bucket-owner-full-control' |
Youtube service
providerYoutube.getUploadMethod(params) ⇒ Promise.<{type: string, url: string, method: string, headers: Object}>
Get upload method
Kind: instance method of ProviderYoutube
Param | Type |
---|---|
params | Object |
params.accessToken | string |
params.size | number |
params.mime | string |
params.privacy | string |
params.meta | Object |
params.meta.title | string |
params.meta.description | string |