Noteworthy Placebo Mongers

    @jswork/next-weibo-oss

    1.0.2 • Public • Published

    next-weibo-oss

    Weibo oss for next api.

    version license size download

    installation

    npm install -S @jswork/next-weibo-oss

    proxy_pass(node)

    app.use(
      '/weibo_api',
      proxy({
        target: 'https://picupload.weibo.com',
        changeOrigin: true,
        pathRewrite: { '^/weibo_api/': '/' }
      })
    );

    proxy_pass(nginx)

    location /weibo_api {
        proxy_pass https://picupload.weibo.com;
        rewrite ^/weibo_api/(.*) /$1 break;
    }

    apis

    api params description
    upload file Upload a file.
    uploads fileList Upload files.

    usage

    import NxWeiboOss from '@jswork/next-weibo-oss';
    
    const weiboOss = new NxWeiboOss(token);
    
    // single file:
    weiboOss.upload(file);
    
    // multiple files:
    weiboOss.uploads(files);

    license

    Code released under the MIT license.

    Install

    npm i @jswork/next-weibo-oss

    DownloadsWeekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    8.37 kB

    Total Files

    7

    Last publish

    Collaborators

    • afeiship