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

cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult Maven / Gradle / Ivy

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

import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 
 * code换取session_key接口的响应
 * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html
 *
 * 微信返回报文:{"session_key":"nzoqhc3OnwHzeTxJs+inbQ==","openid":"oVBkZ0aYgDMDIywRdgPW8-joxXc4"}
 * 
* @author Binary Wang */ @Data @EqualsAndHashCode(callSuper = false) public class WxMaJscode2SessionResult implements Serializable { private static final long serialVersionUID = -1060216618475607933L; @SerializedName("session_key") private String sessionKey; @SerializedName("openid") private String openid; @SerializedName("unionid") private String unionid; public static WxMaJscode2SessionResult fromJson(String json) { return WxMaGsonBuilder.create().fromJson(json, WxMaJscode2SessionResult.class); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy