All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.binarywang.wx.miniapp.api.WxMaDeviceSubscribeService Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package cn.binarywang.wx.miniapp.api;

import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceSubscribeMessageRequest;
import cn.binarywang.wx.miniapp.bean.device.WxMaDeviceTicketRequest;
import me.chanjar.weixin.common.error.WxErrorException;

/**
 * 小程序设备订阅消息相关 API
 * 文档:
 *
 * @author JCLee
 * @since 2021-12-16 17:13:35
 */
public interface WxMaDeviceSubscribeService {

  /**
   * 
   * 获取设备票据
   * 应用场景:
   * 小程序前端界面拉起设备消息授权订阅弹框界面
   * 注意:
   * 设备ticket有效时间为5分钟
   * 
* @param deviceTicketRequest * @return * @throws WxErrorException */ String getSnTicket(WxMaDeviceTicketRequest deviceTicketRequest) throws WxErrorException; /** *
   * 发送设备订阅消息
   * 
* * @param deviceSubscribeMessageRequest 订阅消息 * @throws WxErrorException . */ void sendDeviceSubscribeMsg(WxMaDeviceSubscribeMessageRequest deviceSubscribeMessageRequest) throws WxErrorException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy