com.github.sd4324530.fastweixin.api
类 QrcodeAPI

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.api.BaseAPI
      继承者 com.github.sd4324530.fastweixin.api.QrcodeAPI

public class QrcodeAPI
extends BaseAPI

二维码相关API

从以下版本开始:
1.2
作者:
peiyu

字段摘要
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
QrcodeAPI(ApiConfig config)
           
 
方法摘要
 QrcodeResponse createQrcode(QrcodeType actionName, String sceneId, Integer expireSeconds)
          创建二维码
 QrcodeResponse createQrcode(QrcodeType actionName, String sceneId, String sceneStr, Integer expireSeconds)
          创建二维码
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

QrcodeAPI

public QrcodeAPI(ApiConfig config)
方法详细信息

createQrcode

public QrcodeResponse createQrcode(QrcodeType actionName,
                                   String sceneId,
                                   Integer expireSeconds)
创建二维码

参数:
actionName - 二维码类型,QR_SCENE为临时,QR_LIMIT_SCENE为永久
sceneId - 场景值ID,临时二维码时为32位非0整型,永久二维码时最大值为100000(目前参数只支持1--100000)
expireSeconds - 该二维码有效时间,以秒为单位。 最大不超过2592000(即30天),此字段如果不填,则默认有效期为30秒
返回:
二维码对象

createQrcode

public QrcodeResponse createQrcode(QrcodeType actionName,
                                   String sceneId,
                                   String sceneStr,
                                   Integer expireSeconds)
创建二维码

参数:
actionName - 二维码类型,QR_SCENE为临时,QR_LIMIT_SCENE为永久
sceneId - 场景值ID,临时二维码时为32位非0整型,永久二维码时最大值为100000(目前参数只支持1--100000)
sceneStr - 场景值ID(字符串形式的ID),字符串类型,长度限制为1到64,仅永久二维码支持此字段
expireSeconds - 该二维码有效时间,以秒为单位。 最大不超过2592000(即30天),此字段如果不填,则默认有效期为30秒
返回:
二维码对象


Copyright © 2017. All rights reserved.