1.1.1 • Published 3 years ago

diawi-nodejs-uploader v1.1.1

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

diawi-nodejs-uploader

A NodeJS tool for Diawi integration written with Typescript

Installation

$ yarn add diawi-nodejs-uploader
=== or ===
$ npm install diawi-nodejs-uploader

Usage

Programmatic

All options except token and file are optional.

import { upload } from 'diawi-nodejs-uploader';

const result = await upload({
        file: '/files/bundle.apk',
        token: 'token',
    });
console.log(result);

Full example

import { upload } from 'diawi-nodejs-uploader';

const result = await upload({
    file: '/file/bundle.apk',
    token: 'token',
    callback_emails: 'email@mail.com',
    callback_url: 'myUrl.com/cb',
    comment: 'comment text',
    find_by_udid: true,
    installation_notifications: true,
    password: 'passwordForBundle',
    wall_of_apps: true,
}, {
    apiUploadEndpoint: 'rewriteDefauitDiawiUploadEndpoint',
    apiStatusEndpoint: 'rewriteDefauitDiawiStatusEndpoint',
    maxApiStatusCalls: 99,
    onUploadProgress: (progressPercent) => {
        console.log(`uploading: ${progressPercent}`);
    },
    onStatusProgress: (status) => {
        console.log(`status: ${status}`);
    },
});

console.log(result);

CLI

// in development
1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago