From 182e25c2f6d415056b13106702a5701996332fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=A5=E5=AF=92?= <381582176@qq.com> Date: Sat, 29 Sep 2018 14:25:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20ACCESS=5FTOKEN=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUMMARY.md | 3 ++- cloud-function/node-sdk/access-token.md | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SUMMARY.md b/SUMMARY.md index 3fca7a4a..a8cec3d4 100755 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -54,7 +54,7 @@ * [调用云函数](js-sdk/invoke-function.md) * [检测违规图片、文本](js-sdk/censor.md) * [短信验证码](js-sdk/sms.md) - * [错误对象和错误码详解](js-sdk/error-code.md) + * [错误码和 HError 对象](js-sdk/error-code.md) * [SDK 下载](js-sdk/download-sdk.md) * [更新日志](https://github.com/ifanrx/hydrogen-js-sdk/blob/master/CHANGELOG.md) @@ -134,6 +134,7 @@ * [发送模板消息](cloud-function/node-sdk/template-message.md) * [网络请求](cloud-function/node-sdk/request.md) * [检测违规图片、文本](cloud-function/node-sdk/censor.md) + * [获取 ACCESS_TOKEN](cloud-function/node-sdk/access-token.md) * [用户](cloud-function/node-sdk/user.md) * [用户组操作](cloud-function/node-sdk/user-group.md) * [组集操作](cloud-function/node-sdk/super-group.md) diff --git a/cloud-function/node-sdk/access-token.md b/cloud-function/node-sdk/access-token.md index fc97ee21..af2571dc 100644 --- a/cloud-function/node-sdk/access-token.md +++ b/cloud-function/node-sdk/access-token.md @@ -1,5 +1,8 @@ # 获取微信 ACCESS_TOKEN +开发者授权知晓云后,知晓云在调用微信 API 时,会获取最新的 ACCESS_TOKEN ,这时如果开发者在自己的服务器上也刷新了 ACCESS_TOKEN 去调用微信的 API,会使知晓云的保存的 ACCESS_TOKEN 失效,会造成额外的 ACCESS_TOKEN 刷新,浪费 ACCESS_TOKEN 的生成次数。 +因此知晓云开放了获取知晓云保存的 ACCESS_TOKEN 的 API,开发者只管获取 ACCESS_TOKEN,而无需担心 ACCESS_TOKEN 过期的问题。 + `BaaS.wxAccessToken(signKey)` ## 参数说明