Skip to content

Alex-Kondakov/keep2share-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Node.Js implementation of Keep2Share and Fileboom APIs.

Installation

# cd /your/project/directory
# npm install keep2share --save

Usage

Uploading:

import * as API from 'keep2share'

const k2s = API.init('YOUR EMAIL HERE', 'YOUR PASSWORD HERE', 'keep2share.cc')

await k2s.login()
    .then(response => {
        console.log(response)
    })
await k2s.upload('/full/path/to/your/file.rar')
    .then( response => {
        console.log(response)
    })

Downloading:

//Use fboom.me instead of keep2share.cc if you want interact with Fileboom
import * as API from 'keep2share'

const k2s = API.init('YOUR EMAIL HERE', 'YOUR PASSWORD HERE', 'keep2share.cc')

await k2s.login()
    .then(response => {
        console.log(response);
    })
await k2s.download('https://k2s.cc/file/sdfgsdfgsdfsdfh/file.rar', '/path/to/assets')
    .then( response => {
        console.log(response);
    })

About

Node.Js implementation for keep2share and fileboom APIs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published