@@ -238,6 +238,19 @@ public interface WxOpenMaService extends WxMaService {
238
238
*/
239
239
String API_AUDIT_UPLOAD_MEDIA = "https://api.weixin.qq.com/wxa/uploadmedia" ;
240
240
241
+ /**
242
+ * 小程序管理-获取公众号关联的小程序
243
+ */
244
+ String API_WX_AMP_LINK_GET = "https://api.weixin.qq.com/cgi-bin/wxopen/wxamplinkget" ;
245
+ /**
246
+ * 小程序管理-关联小程序
247
+ */
248
+ String API_WX_AMP_LINK_CREATE = "https://api.weixin.qq.com/cgi-bin/wxopen/wxamplink" ;
249
+ /**
250
+ * 小程序管理-解除已关联的小程序
251
+ */
252
+ String API_WX_AMP_LINK_UN = "https://api.weixin.qq.com/cgi-bin/wxopen/wxampunlink" ;
253
+
241
254
/**
242
255
* 获得小程序的域名配置信息
243
256
*
@@ -645,4 +658,48 @@ WxOpenMaDomainResult modifyDomain(String action, List<String> requestDomains, Li
645
658
* @return
646
659
*/
647
660
WxMaAuditMediaUploadResult uploadMedia (File file ) throws WxErrorException ;
661
+
662
+ /**
663
+ * <pre>
664
+ * 获取公众号关联的小程序
665
+ * 请求方式:POST(HTTPS)
666
+ * 请求地址:<a href="https://api.weixin.qq.com/cgi-bin/wxopen/wxamplinkget?access_token=TOKEN">https://api.weixin.qq.com/cgi-bin/wxopen/wxamplinkget?access_token=TOKEN</a>
667
+ * 文档地址:<a href="https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html">https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html</a>
668
+ * <pre>
669
+ * @return 公众号关联的小程序
670
+ */
671
+ WxAmpLinkResult getWxAmpLink () throws WxErrorException ;
672
+
673
+ /**
674
+ * <pre>
675
+ * 关联小程序
676
+ * 关联流程(需要公众号和小程序管理员双方确认):
677
+ * 1、第三方平台调用接口发起关联
678
+ * 2、公众号管理员收到模板消息,同意关联小程序。
679
+ * 3、小程序管理员收到模板消息,同意关联公众号。
680
+ * 4、关联成功
681
+ * 等待管理员同意的中间状态可使用“获取公众号关联的小程序”接口进行查询。
682
+ * 请求方式:POST(HTTPS)
683
+ * 请求地址:<a href="https://api.weixin.qq.com/cgi-bin/wxopen/wxamplink?access_token=TOKEN">https://api.weixin.qq.com/cgi-bin/wxopen/wxamplink?access_token=TOKEN</a>
684
+ * 文档地址:<a href="https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html">https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html</a>
685
+ * <pre>
686
+ * @param appid 小程序 appid
687
+ * @param notifyUsers 是否发送模板消息通知公众号粉丝
688
+ * @param showProfile 是否展示公众号主页中
689
+ * @return 响应结果
690
+ */
691
+ WxOpenResult wxAmpLink (String appid , String notifyUsers , String showProfile ) throws WxErrorException ;
692
+
693
+ /**
694
+ * <pre>
695
+ * 解除已关联的小程序
696
+ * 请求方式:POST(HTTPS)
697
+ * 请求地址:<a href="https://api.weixin.qq.com/cgi-bin/wxopen/wxampunlink?access_token=TOKEN">https://api.weixin.qq.com/cgi-bin/wxopen/wxampunlink?access_token=TOKEN</a>
698
+ * 文档地址:<a href="https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html">https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html</a>
699
+ * <pre>
700
+ * @param appid 小程序 appid
701
+ * @return 响应结果
702
+ */
703
+ WxOpenResult wxAmpUnLink (String appid ) throws WxErrorException ;
704
+
648
705
}
0 commit comments