Merge pull request #181 from sutra/wxa-doc
Update WeChat official documentation links for wxa.
This commit is contained in:
commit
40692a1948
@ -37,7 +37,7 @@ public class LoginApi extends WxaApi {
|
||||
* @param grantType 填写为 authorization_code
|
||||
* @return the session.
|
||||
* @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 {
|
||||
String jscode2sessionUri = getRequestUri("sns_jscode2session",
|
||||
|
||||
@ -47,7 +47,7 @@ public class QrCodeApi extends TokenManagerApi {
|
||||
* @return image bytes of WXA code.
|
||||
* @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(
|
||||
String path,
|
||||
@ -96,7 +96,7 @@ public class QrCodeApi extends TokenManagerApi {
|
||||
* @return image bytes of WXA code.
|
||||
* @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(
|
||||
String scene,
|
||||
@ -125,7 +125,7 @@ public class QrCodeApi extends TokenManagerApi {
|
||||
* @return image bytes of WXA QR code.
|
||||
* @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(
|
||||
String path,
|
||||
|
||||
@ -62,7 +62,7 @@ public class SecCheckApi extends TokenManagerApi {
|
||||
*
|
||||
* @param inputStream the image input stream.
|
||||
* @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 {
|
||||
final String imgSecCheckUri = this.getAccessTokenRequestUri("wxa_img_sec_check");
|
||||
@ -86,7 +86,7 @@ public class SecCheckApi extends TokenManagerApi {
|
||||
*
|
||||
* @param content 要检测的文本内容,长度不超过 500KB,编码格式为 UTF-8。
|
||||
* @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 {
|
||||
final Map<String, String> params = new HashMap<String, String>(1);
|
||||
|
||||
@ -33,7 +33,7 @@ public class TemplateApi extends TokenManagerApi {
|
||||
* @param pageable the pagination information.
|
||||
* @return templates in library.
|
||||
* @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 {
|
||||
final TemplateListResult r = post(
|
||||
@ -50,7 +50,7 @@ public class TemplateApi extends TokenManagerApi {
|
||||
* @param id 模板标题id,可通过接口获取,也可登录小程序后台查看获取
|
||||
* @return the template in library with specified ID.
|
||||
* @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 {
|
||||
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个关键词组合
|
||||
* @return the added template ID.
|
||||
* @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 {
|
||||
final AddTemplateParameter params = new AddTemplateParameter(id, keywordIds);
|
||||
@ -88,7 +88,7 @@ public class TemplateApi extends TokenManagerApi {
|
||||
* @param pageable the pagination information.
|
||||
* @return the templates.
|
||||
* @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 {
|
||||
final TemplateListResult r = post(
|
||||
@ -104,7 +104,7 @@ public class TemplateApi extends TokenManagerApi {
|
||||
*
|
||||
* @param id 要删除的模板id
|
||||
* @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 {
|
||||
final Map<String, String> params = new HashMap<String, String>(1);
|
||||
|
||||
@ -32,7 +32,7 @@ public class TemplateMessageApi extends TokenManagerApi {
|
||||
* @param data 模板内容,不填则下发空模板。
|
||||
* @param emphasisKeyword 模板需要放大的关键词,不填则默认无放大。
|
||||
* @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(
|
||||
final String toUser,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* <a href="https://developers.weixin.qq.com/miniprogram/dev/api/">WeChat Mini
|
||||
* Program</a> support library.
|
||||
* <a href="https://developers.weixin.qq.com/miniprogram/dev/framework/server-ability/backend-api.html">
|
||||
* WeChat Mini Program</a> support library.
|
||||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user