apifm-webapi 26.8.29 → 26.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +72 -72
  2. package/index.js +3202 -3202
  3. package/instructions.md +3144 -3144
  4. package/package.json +17 -17
package/README.md CHANGED
@@ -1,73 +1,73 @@
1
- # 功能介绍
2
-
3
- web开发云接口工具包,无需服务器,无需开发后台,开箱即用,轻松开发web应用
4
-
5
- 只要是基于web(浏览器)上访问的应用,都可以使用该插件进行快速开发
6
-
7
- 交流 QQ 群: 718308203
8
-
9
- 欢迎大家进群交流,文档持续更新中...
10
-
11
- # 其他镜像
12
-
13
- - [Github](https://github.com/gooking/apifm-webapi)
14
- - [码云](https://gitee.com/javazj/apifm-webapi)
15
-
16
- # 平台支持
17
-
18
- * [微信小程序开发](https://github.com/gooking/apifm-wxapi)
19
- * [web/h5 网站开发](https://github.com/gooking/apifm-webapi)
20
- * [Flutter 开发](https://github.com/gooking/apifm-flutter)
21
-
22
- # 使用方法
23
-
24
- ## 安装
25
-
26
- ```
27
- npm install apifm-webapi
28
- ```
29
-
30
- ## 使用
31
-
32
- 1. js文件头部引入插件:
33
-
34
- ```
35
- const WEBAPI = require('apifm-webapi')
36
- WEBAPI.init('gooking')
37
- ```
38
-
39
- 2. js文件直接调用方法:
40
-
41
- ```
42
- WEBAPI.banners().then(res => {
43
- // 输出请求结果
44
- console.log(res)
45
- }).catch(err => {
46
- console.error(err)
47
- }).finally(() => {
48
- console.log('request complete!')
49
- })
50
- ```
51
-
52
- # 返回值说明
53
-
54
- WXAPI 方法返回数据主要包含 3 个内容:
55
-
56
- 1. code 错误码,0 代表操作重构,其他数字均表示错误,具体错误描述请查看 msg;
57
- 2. msg 如果上面的code不为0,那么 msg 将会返回具体的错误说明描述
58
- 3. data 字段保存了 code 为0 时候的数据,一起你需要的数据,都保存在 data 中返回给你
59
-
60
- # 相关资源
61
-
62
- [「功能说明文档」](instructions.md)
63
- [「api接口文档」](https://api.it120.cc/doc.html)
64
-
65
- # 联系作者
66
-
67
- | ➕微信 | ➕支付宝 | ➕QQ |
68
- | :------: | :------: | :------: |
69
- | <img src="https://cdn.it120.cc/apifactory/2019/07/03/a86f7e46-1dbc-42fe-9495-65403659671e.jpeg" width="200px"> | <img src="https://cdn.it120.cc/apifactory/2019/07/03/fda59aeb-4943-4379-93bb-92856740bd6a.jpeg" width="200px"> | <img src="https://cdn.it120.cc/apifactory/2019/07/07/d420e29b-872e-4147-b57d-0aa988cd4853.png" width="200px"> |
70
-
71
- # 授权协议
72
-
1
+ # 功能介绍
2
+
3
+ web开发云接口工具包,无需服务器,无需开发后台,开箱即用,轻松开发web应用
4
+
5
+ 只要是基于web(浏览器)上访问的应用,都可以使用该插件进行快速开发
6
+
7
+ 交流 QQ 群: 718308203
8
+
9
+ 欢迎大家进群交流,文档持续更新中...
10
+
11
+ # 其他镜像
12
+
13
+ - [Github](https://github.com/gooking/apifm-webapi)
14
+ - [码云](https://gitee.com/javazj/apifm-webapi)
15
+
16
+ # 平台支持
17
+
18
+ * [微信小程序开发](https://github.com/gooking/apifm-wxapi)
19
+ * [web/h5 网站开发](https://github.com/gooking/apifm-webapi)
20
+ * [Flutter 开发](https://github.com/gooking/apifm-flutter)
21
+
22
+ # 使用方法
23
+
24
+ ## 安装
25
+
26
+ ```
27
+ npm install apifm-webapi
28
+ ```
29
+
30
+ ## 使用
31
+
32
+ 1. js文件头部引入插件:
33
+
34
+ ```
35
+ const WEBAPI = require('apifm-webapi')
36
+ WEBAPI.init('gooking')
37
+ ```
38
+
39
+ 2. js文件直接调用方法:
40
+
41
+ ```
42
+ WEBAPI.banners().then(res => {
43
+ // 输出请求结果
44
+ console.log(res)
45
+ }).catch(err => {
46
+ console.error(err)
47
+ }).finally(() => {
48
+ console.log('request complete!')
49
+ })
50
+ ```
51
+
52
+ # 返回值说明
53
+
54
+ WXAPI 方法返回数据主要包含 3 个内容:
55
+
56
+ 1. code 错误码,0 代表操作重构,其他数字均表示错误,具体错误描述请查看 msg;
57
+ 2. msg 如果上面的code不为0,那么 msg 将会返回具体的错误说明描述
58
+ 3. data 字段保存了 code 为0 时候的数据,一起你需要的数据,都保存在 data 中返回给你
59
+
60
+ # 相关资源
61
+
62
+ [「功能说明文档」](instructions.md)
63
+ [「api接口文档」](https://api.it120.cc/doc.html)
64
+
65
+ # 联系作者
66
+
67
+ | ➕微信 | ➕支付宝 | ➕QQ |
68
+ | :------: | :------: | :------: |
69
+ | <img src="https://cdn.it120.cc/apifactory/2019/07/03/a86f7e46-1dbc-42fe-9495-65403659671e.jpeg" width="200px"> | <img src="https://cdn.it120.cc/apifactory/2019/07/03/fda59aeb-4943-4379-93bb-92856740bd6a.jpeg" width="200px"> | <img src="https://cdn.it120.cc/apifactory/2019/07/07/d420e29b-872e-4147-b57d-0aa988cd4853.png" width="200px"> |
70
+
71
+ # 授权协议
72
+
73
73
  [MIT License](LICENSE)