예제 #1
0
 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;
 }
예제 #2
0
 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;
 }