
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@kintone/rest-api-client-wechat-mp
Advanced tools
kintone REST API client for WeChat Mini Program
An API client for Kintone REST API, it is used in WeChat Mini Program client.
It is based on @kintone/rest-api-client@v1.2.0.
It wraps the functions of app, record and bulkRequest of "@kintone/rest-api-client", and develops the new functions of file.
Step 1
Open WeChat Developer Tool and create a new project. (Ref. 小程序开发指南)
Step 2
Install with npm
cd [your-project-directory]
npm init -y
npm install @kintone/rest-api-client-wechat-mp
Step 3
Modify the setting of "WeChat Developer Tool"
Check the setting "增强编译" and "使用npm模块". (Ref. 代码编译 - 增强编译)
Build npm
Click "工具" > "构建npm" (Ref. npm 支持)
const {KintoneRestAPIClientWeChatMP} = require('@kintone/rest-api-client-wechat-mp');
const client = new KintoneRestAPIClientWeChatMP({
baseUrl: "https://example.cybozu.com",
// Use password authentication
auth: {
username: process.env.KINTONE_USERNAME,
password: process.env.KINTONE_PASSWORD,
},
// Use API token authentication
// auth: { apiToken: process.env.KINTONE_API_TOKEN }
});
client.record
.getRecords({ app: "1" })
.then((resp) => {
console.log(resp.records);
})
.catch((err) => {
console.log(err);
});
KintoneRestAPIClientWeChatMP
Name | Type | Required | Description |
---|---|---|---|
baseUrl | String | Required | The base URL for your Kintone environment. It must start with https . (e.g. https://example.kintone.com) |
auth | Object | Required | The object for authentication. See Authentication. |
guestSpaceId | Number or String | The guest space ID. If you are dealing with apps that are in guest spaces, please specify this. | |
basicAuth | Object | If your Kintone environment uses Basic authentication, please specify its username and password. | |
basicAuth.username | String | The username of Basic authentication. | |
basicAuth.password | String | The password of Basic authentication. |
The client supports three authentication methods:
The required parameters inside auth
are different by the methods.
The client determines which method to use by passed parameters.
Name | Type | Required | Description |
---|---|---|---|
username | String | Yes | User's login name |
password | String | Yes | User's password |
Name | Type | Required | Description |
---|---|---|---|
apiToken | String or String[] | Yes | You can pass multiple api tokens as an array of string. |
The usage of following functions is not changed, you can refer to the doc of "@kintone/rest-api-client".
Pay attention to the class name, you should use KintoneRestAPIClientWeChatMP in WeChat. Refer to Sample code.
Copyright(c) Cybozu, Inc.
FAQs
kintone REST API client for WeChat Mini Program
The npm package @kintone/rest-api-client-wechat-mp receives a total of 3 weekly downloads. As such, @kintone/rest-api-client-wechat-mp popularity was classified as not popular.
We found that @kintone/rest-api-client-wechat-mp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.