Budibase 公共 API SDK
JS SDK为Budibase公共API服务.
此 SDK 是由 斯瓦格码源。 。 。 .
Docker用于运行生成器,因此Java不需要. Docker是生成SDK的唯一要求.
生成的代码只会在浏览器中运行. 目前无法在节点JS环境中使用.
示例用途
import { configure, ApplicationsApi } from "@budibase/sdk"
// Configure the API client
configure({
apiKey: "my-api-key",
host: "https://my.budibase.app"
})
// Search for an app.
// We can use the promisified version...
const res = await ApplicationsApi.applicationsSearchPost({ name: "foo" })
console.log("Applications:", res.data)
// ...or the callback version
ApplicationsApi.applicationsSearchPost({ name: "foo" }, ((error, data) => {
if (error) {
console.error("Failed to search:", error)
} else {
console.log("Applications:", data.data)
}
}))