| 程序包 | 说明 |
|---|---|
| com.adouteam.simple.tinyprogram.global | |
| com.adouteam.simple.tinyprogram.service |
| 限定符和类型 | 字段和说明 |
|---|---|
TpConfig |
UrlBuilder.tpConfig |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
CustomerService.getTempMedia(TpConfig tpConfig,
String accessToken,
String mediaId)
获取客服消息内的临时素材。
|
static SetTypingResponse |
CustomerService.setTyping(TpConfig tpConfig,
String accessToken,
String openIdOfToUser,
String command)
下发客服当前输入状态给用户。
|
static UploadTempMediaResponse |
CustomerService.uploadTempMedia(TpConfig tpConfig,
String accessToken,
String type,
String mediaPath)
把媒体文件上传到微信服务器。
|
| 构造器和说明 |
|---|
UrlBuilder(String url,
TpConfig tpConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
NotifyService.check(TpConfig tpConfig,
String signature,
String timestamp,
String nonce)
校验通知合法性
|
static Code2SessionResponse |
LoginService.code2Session(TpConfig tpConfig,
String accessToken,
String code)
登录code2Session
|
static Payment |
PayService.createPayment(TpConfig tpConfig,
String prepayId)
创建调起支付的参数对象
|
static GetAccessTokenResponse |
AccessTokenService.getAccessToken(TpConfig tpConfig)
auth.getAccessToken
|
static GetPaidUnionIdResponse |
UserInfoService.getPaidUnionId(TpConfig tpConfig,
String accessToken,
String openId)
auth.getPaidUnionId
|
static TpResponse |
SubscribeMessageService.send(TpConfig tpConfig,
String accessToken,
String toUser,
String templateId,
Map<String,SubscribeMessageDataValue> data,
String page)
发送订阅消息
|
static UnifiedOrderResponse |
PayService.unifiedOrder(TpConfig tpConfig,
String tradeNo,
String body,
int totalFee,
String openId,
String notifyUrl)
统一下单
|
Copyright © 2020. All rights reserved.