2.2.24 • Published 3 years ago

@ant-basement/miniprogram-sdk v2.2.24

Weekly downloads
3
License
MIT
Repository
-
Last release
3 years ago

miniprogram-sdk

NPM

Basement SDK for Alipay Mini Program IDE

Getting Started

npm install --save @ant-basement/miniprogram-sdk

Documentation

API reference please see documentation

Usage

// app.js
App({
  onLaunch(options) {
    basement.user.getInfo().then(res => {
      console.log('user info', res);
    });
    basement.db.collection('task').find().then(res => {
      console.log('task list', res.result);
    });
    basement.function.invoke('sayHello', { name: 'angela' }).then(res => {
      console.log(res.result + ' says angela');
    });

    basement.appService.invoke('myApp', { method: 'GET' }).then(res => {
      console.log(res.result + 'userId say hello to angela');
    });

    my.chooseImage({
      chooseImage: 1,
      success: res => {
        const path = res.apFilePaths[0];
        const options = {
          env: 'public',
          filePath: path,
        };

        basement.file.uploadFile(options).then(res => {
          console.log('file info', res);
        });
      },
    });
  }
});
2.2.24

3 years ago

2.2.23-alpha.0

3 years ago

2.2.23

3 years ago

2.2.22

3 years ago

2.2.21-alpha.0

3 years ago

2.2.21

3 years ago

2.2.20-alpha.6

3 years ago

2.2.20-alpha.5

3 years ago

2.2.20-alpha.4

3 years ago

2.2.20-alpha.3

3 years ago

2.2.20-alpha.2

3 years ago

2.2.20-alpha.1

3 years ago

2.2.20

3 years ago

2.2.20-alpha.0

3 years ago

2.2.19

3 years ago

2.2.19-alpha.1

3 years ago

2.2.19-alpha.0

3 years ago

2.2.18

3 years ago

2.2.17-alpha.0

3 years ago

2.3.0-alpha.7

3 years ago

2.3.0-alpha.6

3 years ago

2.3.0-alpha.5

3 years ago

2.3.0-alpha.4

3 years ago

2.3.0-alpha.2

3 years ago

2.3.0-alpha.1

3 years ago

2.3.0-alpha.0

3 years ago

2.2.17

3 years ago

2.2.16

3 years ago

2.2.15

3 years ago

2.2.15-alpha.0

3 years ago

2.2.14

3 years ago

2.2.14-alpha.1

3 years ago

2.2.14-alpha.0

3 years ago

2.2.13

3 years ago

2.2.12-alpha.1

3 years ago

2.2.12-alpha.0

3 years ago

2.2.12

3 years ago

2.2.11

3 years ago

2.2.10-alpha.1

3 years ago

2.2.10-alpha.0

3 years ago

2.2.10

3 years ago

2.2.9

3 years ago

2.2.8

3 years ago

2.2.7

3 years ago

2.2.7-alpha

3 years ago

2.2.6

3 years ago

2.2.5

3 years ago

2.2.5-alpha.1

3 years ago

2.2.5-alpha.0

3 years ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1-alpha.0

3 years ago

2.2.1

3 years ago

2.2.0-alpha.5

3 years ago

2.2.0

3 years ago

2.2.0-alpha.4

3 years ago

2.2.0-alpha.3

3 years ago

2.2.0-alpha.2

3 years ago

2.2.0-alpha.1

3 years ago

2.2.0-alpha.0

3 years ago

2.1.0

4 years ago

2.1.0-alpha.0

4 years ago

1.1.0

4 years ago

2.0.2-alpha.3

4 years ago

2.0.2-alpha.2

4 years ago

2.0.2-alpha.1

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

2.0.2-alpha.0

4 years ago

2.0.1

4 years ago

2.0.1-alpha.0

4 years ago

2.0.0

4 years ago

2.0.0-alpha.7.10

4 years ago

2.0.0-alpha.7.9

4 years ago

2.0.0-alpha.7.8

4 years ago

2.0.0-alpha.7.7

4 years ago

2.0.0-alpha.7.6

4 years ago

2.0.0-alpha.7.4

4 years ago

2.0.0-alpha.7.3

4 years ago

2.0.0-alpha.7.2

4 years ago

2.0.0-alpha.7.1

4 years ago

2.0.0-alpha.7.0

4 years ago

2.0.0-alpha.5

4 years ago

2.0.0-alpha.1

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