public static string GetTickect(string acessToken) { HttpHelper helper = new HttpHelper(); string url = string.Format(@"https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={0}&type=jsapi", acessToken); string result = helper.Get(url, null); return result; }
public static string GetToken() { HttpHelper helper = new HttpHelper(); string url = string.Format(@"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}", AppId, AppSecret); string result = helper.Get(url, null); return result; }