Update WeChat official documentation links for wxa.

This commit is contained in:
Sutra Zhou 2019-09-20 20:08:47 +08:00
parent 3af2db29d9
commit ab21a862a4
6 changed files with 14 additions and 14 deletions

View File

@ -37,7 +37,7 @@ public class LoginApi extends WxaApi {
* @param grantType 填写为 authorization_code * @param grantType 填写为 authorization_code
* @return the session. * @return the session.
* @throws WeixinException 发生错误时比如 <code>js_code</code> 无效 * @throws WeixinException 发生错误时比如 <code>js_code</code> 无效
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html">登录凭证校验<a/> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html">登录凭证校验<a/>
*/ */
public Session jscode2session(String jsCode, String grantType) throws WeixinException { public Session jscode2session(String jsCode, String grantType) throws WeixinException {
String jscode2sessionUri = getRequestUri("sns_jscode2session", String jscode2sessionUri = getRequestUri("sns_jscode2session",

View File

@ -47,7 +47,7 @@ public class QrCodeApi extends TokenManagerApi {
* @return image bytes of WXA code. * @return image bytes of WXA code.
* @throws WeixinException indicates getting access token failed or getting WXA code failed. * @throws WeixinException indicates getting access token failed or getting WXA code failed.
* *
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/qr-code/getWXACode.html">获取小程序码</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html">获取小程序码</a>
*/ */
public byte[] getWxaCode( public byte[] getWxaCode(
String path, String path,
@ -96,7 +96,7 @@ public class QrCodeApi extends TokenManagerApi {
* @return image bytes of WXA code. * @return image bytes of WXA code.
* @throws WeixinException indicates getting access token failed or getting WXA code failed. * @throws WeixinException indicates getting access token failed or getting WXA code failed.
* *
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/qr-code/getWXACodeUnlimit.html">获取小程序码</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html">获取小程序码</a>
*/ */
public byte[] getWxaCodeUnlimit( public byte[] getWxaCodeUnlimit(
String scene, String scene,
@ -125,7 +125,7 @@ public class QrCodeApi extends TokenManagerApi {
* @return image bytes of WXA QR code. * @return image bytes of WXA QR code.
* @throws WeixinException indicates getting access token failed or getting WXA QR code failed. * @throws WeixinException indicates getting access token failed or getting WXA QR code failed.
* *
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/qr-code/createWXAQRCode.html">获取小程序二维码</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.createQRCode.html">获取小程序二维码</a>
*/ */
public byte[] createWxaQrCode( public byte[] createWxaQrCode(
String path, String path,

View File

@ -62,7 +62,7 @@ public class SecCheckApi extends TokenManagerApi {
* *
* @param inputStream the image input stream. * @param inputStream the image input stream.
* @throws WeixinException indicates getting access token failed, or the content is risky. * @throws WeixinException indicates getting access token failed, or the content is risky.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/sec-check/imgSecCheck.html">校验一张图片是否含有违法违规内容</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.imgSecCheck.html">校验一张图片是否含有违法违规内容</a>
*/ */
public void imgSecCheck(InputStream inputStream) throws WeixinException { public void imgSecCheck(InputStream inputStream) throws WeixinException {
final String imgSecCheckUri = this.getAccessTokenRequestUri("wxa_img_sec_check"); final String imgSecCheckUri = this.getAccessTokenRequestUri("wxa_img_sec_check");
@ -86,7 +86,7 @@ public class SecCheckApi extends TokenManagerApi {
* *
* @param content 要检测的文本内容长度不超过 500KB编码格式为 UTF-8 * @param content 要检测的文本内容长度不超过 500KB编码格式为 UTF-8
* @throws WeixinException indicates getting access token failed, or the content is risky. * @throws WeixinException indicates getting access token failed, or the content is risky.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/sec-check/msgSecCheck.html">检查一段文本是否含有违法违规内容</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.msgSecCheck.html">检查一段文本是否含有违法违规内容</a>
*/ */
public void msgSecCheck(String content) throws WeixinException { public void msgSecCheck(String content) throws WeixinException {
final Map<String, String> params = new HashMap<String, String>(1); final Map<String, String> params = new HashMap<String, String>(1);

View File

@ -33,7 +33,7 @@ public class TemplateApi extends TokenManagerApi {
* @param pageable the pagination information. * @param pageable the pagination information.
* @return templates in library. * @return templates in library.
* @throws WeixinException indicates getting access token failed or getting templates failed. * @throws WeixinException indicates getting access token failed or getting templates failed.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/template-message/getTemplateLibraryList.html">获取小程序模板库标题列表</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/template-message/templateMessage.getTemplateLibraryList.html">获取小程序模板库标题列表</a>
*/ */
public Pagedata<Template> getTemplatesInLibrary(final Pageable pageable) throws WeixinException { public Pagedata<Template> getTemplatesInLibrary(final Pageable pageable) throws WeixinException {
final TemplateListResult r = post( final TemplateListResult r = post(
@ -50,7 +50,7 @@ public class TemplateApi extends TokenManagerApi {
* @param id 模板标题id可通过接口获取也可登录小程序后台查看获取 * @param id 模板标题id可通过接口获取也可登录小程序后台查看获取
* @return the template in library with specified ID. * @return the template in library with specified ID.
* @throws WeixinException indicates getting access token failed or getting template failed. * @throws WeixinException indicates getting access token failed or getting template failed.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/template-message/getTemplateLibraryById.html">获取模板库某个模板标题下关键词库</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/template-message/templateMessage.getTemplateLibraryById.html">获取模板库某个模板标题下关键词库</a>
*/ */
public Template getTemplateInLibrary(String id) throws WeixinException { public Template getTemplateInLibrary(String id) throws WeixinException {
final Map<String, String> params = new HashMap<String, String>(1); final Map<String, String> params = new HashMap<String, String>(1);
@ -70,7 +70,7 @@ public class TemplateApi extends TokenManagerApi {
* @param keywordIds 开发者自行组合好的模板关键词列表关键词顺序可以自由搭配例如[3,5,4][4,5,3]最多支持10个关键词组合 * @param keywordIds 开发者自行组合好的模板关键词列表关键词顺序可以自由搭配例如[3,5,4][4,5,3]最多支持10个关键词组合
* @return the added template ID. * @return the added template ID.
* @throws WeixinException indicates getting access token failed or adding template failed. * @throws WeixinException indicates getting access token failed or adding template failed.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/template-message/addTemplate.html">组合模板并添加至帐号下的个人模板库</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/template-message/templateMessage.addTemplate.html">组合模板并添加至帐号下的个人模板库</a>
*/ */
public String addTemplate(String id, int[] keywordIds) throws WeixinException { public String addTemplate(String id, int[] keywordIds) throws WeixinException {
final AddTemplateParameter params = new AddTemplateParameter(id, keywordIds); final AddTemplateParameter params = new AddTemplateParameter(id, keywordIds);
@ -88,7 +88,7 @@ public class TemplateApi extends TokenManagerApi {
* @param pageable the pagination information. * @param pageable the pagination information.
* @return the templates. * @return the templates.
* @throws WeixinException indicates getting access token failed or getting template failed. * @throws WeixinException indicates getting access token failed or getting template failed.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/template-message/getTemplateList.html">获取帐号下已存在的模板列表</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/template-message/templateMessage.getTemplateList.html">获取帐号下已存在的模板列表</a>
*/ */
public List<Template> getTemplates(final Pageable pageable) throws WeixinException { public List<Template> getTemplates(final Pageable pageable) throws WeixinException {
final TemplateListResult r = post( final TemplateListResult r = post(
@ -104,7 +104,7 @@ public class TemplateApi extends TokenManagerApi {
* *
* @param id 要删除的模板id * @param id 要删除的模板id
* @throws WeixinException indicates getting access token failed or deleting template failed. * @throws WeixinException indicates getting access token failed or deleting template failed.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/template-message/deleteTemplate.html">删除帐号下的某个模板</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/template-message/templateMessage.deleteTemplate.html">删除帐号下的某个模板</a>
*/ */
public void deleteTemplate(String id) throws WeixinException { public void deleteTemplate(String id) throws WeixinException {
final Map<String, String> params = new HashMap<String, String>(1); final Map<String, String> params = new HashMap<String, String>(1);

View File

@ -32,7 +32,7 @@ public class TemplateMessageApi extends TokenManagerApi {
* @param data 模板内容不填则下发空模板 * @param data 模板内容不填则下发空模板
* @param emphasisKeyword 模板需要放大的关键词不填则默认无放大 * @param emphasisKeyword 模板需要放大的关键词不填则默认无放大
* @throws WeixinException indicates getting access token failed, or sending template message failed. * @throws WeixinException indicates getting access token failed, or sending template message failed.
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/open-api/template-message/sendTemplateMessage.html">发送模板消息</a> * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/template-message/templateMessage.send.html">发送模板消息</a>
*/ */
public void sendTemplateMessage( public void sendTemplateMessage(
final String toUser, final String toUser,

View File

@ -1,6 +1,6 @@
/** /**
* <a href="https://developers.weixin.qq.com/miniprogram/dev/api/">WeChat Mini * <a href="https://developers.weixin.qq.com/miniprogram/dev/framework/server-ability/backend-api.html">
* Program</a> support library. * WeChat Mini Program</a> support library.
* *
* @since 1.8 * @since 1.8
*/ */