Skip to content

Latest commit

 

History

History
97 lines (70 loc) · 2.12 KB

README.md

File metadata and controls

97 lines (70 loc) · 2.12 KB

Content Provider Services

Implements services providing upload methods to various services:

  • Youtube
  • S3
  • ... TODO

Installation

npm i @kapitchi/bb-content-provider

Usage

TODO

Development

Build

npm run build

Generates README.md

npm run docs

Tests

npm test

API

Classes

ProviderS3

S3 service

ProviderYoutube

Youtube service

ProviderS3

S3 service

Kind: global class

providerS3.getUploadMethod(params) ⇒ Promise.<{type: string, url: string, method: string}>

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'

ProviderYoutube

Youtube service

Kind: global class

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