Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ywzhaiqi/leancloud-rest-api
leanCloud rest api
https://github.com/ywzhaiqi/leancloud-rest-api
Last synced: about 12 hours ago
JSON representation
leanCloud rest api
- Host: GitHub
- URL: https://github.com/ywzhaiqi/leancloud-rest-api
- Owner: ywzhaiqi
- Created: 2022-01-16T08:39:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-02T14:58:13.000Z (about 1 year ago)
- Last Synced: 2024-11-14T16:02:09.769Z (4 days ago)
- Language: TypeScript
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# leancloud-rest-api
使用 [leanCloud rest api](https://leancloud.cn/docs/rest_api.html) 搭建的简易库。
不是很完善,目前还不支持 node 等
## 使用
```ts
import { Collection, IDBConfig } from '@ywzhaiqi/leancloud-rest-api'const dbConfig: IDBConfig = {
appId: '',
appKey: '',
serverURLs: ''
}const bookApi = new Collection(dbConfig, 'Book')
```import 或 deno 导入
```ts
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](doc/example.ts)