@ywzhaiqi/leancloud-rest-api
v1.3.4
Published
leanCloud rest api
Downloads
14
Readme
leancloud-rest-api
使用 leanCloud rest api 搭建的简易库。
不是很完善,目前还不支持 node 等
使用
import { Collection, IDBConfig } from '@ywzhaiqi/leancloud-rest-api'
const dbConfig: IDBConfig = {
appId: '',
appKey: '',
serverURLs: ''
}
const bookApi = new Collection(dbConfig, 'Book')
import 或 deno 导入
import { Collection } from 'https://cdn.skypack.dev/@ywzhaiqi/leancloud-rest-api';
// 或
// @deno-types="https://esm.sh/@ywzhaiqi/[email protected]/dist/index.d.ts" />
import { Collection } from 'https://esm.run/@ywzhaiqi/[email protected]';
浏览器使用 dist/index.global.js
, const { Collection } = leanCloud
更多见 example