baidupanapi
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

百度网盘API

特别感谢

本API是baidupcsapi的NodeJS移植版

Installation

$ npm install --save baidupanapi

TIP

一下所有的例子皆使用TypeScript

Usage

import PCS, * as bdapi from "baidupanapi"
 
let pcs = new PCS(bdapi.create_username_password_jar_creator("username", "password"))
 
pcs.init.then(() => {
    //DO SOMETHINE HERE
}).catch(console.error)

Simple Example

import PCS, * as bdapi from "baidupanapi"
 
let pcs = new PCS(bdapi.create_username_password_jar_creator("username", "password"))
 
pcs.init
    .then(() => pcs.quota()).then(console.log)
    .then(() => pcs.list_files("/")).then(console.log)
    .then(() => pcs.username()).then(console.log)
    .catch(console.error)

/baidupanapi/

    Package Sidebar

    Install

    npm i baidupanapi

    Weekly Downloads

    1

    Version

    1.2.3

    License

    MIT

    Unpacked Size

    100 kB

    Total Files

    10

    Last publish

    Collaborators

    • xzzpig