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

me.chanjar.weixin.mp.bean.WxMpStableAccessTokenRequest Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.mp.bean;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;

import java.io.Serializable;

/**
 * @author SKYhuangjing
 * 微信公众号 获取稳定版接口调用凭据 请求参数
 */
@Data
public class WxMpStableAccessTokenRequest implements Serializable {

  private static final long serialVersionUID = 1L;

  @SerializedName("grant_type")
  private String grantType = "client_credential";

  @SerializedName("appid")
  private String appid;
  @SerializedName("secret")
  private String secret;

  @SerializedName("force_refresh")
  private boolean forceRefresh;

  public String toJson() {
    return WxMpGsonBuilder.create().toJson(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy