1.获取token
string url= "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid="corpid"&corpsecret="corpsecret;
string reuslt = PostPage(url, "");
txt_token.Text = reuslt;
2.获取模板号
string url = "https://qyapi.weixin.qq.com/cgi-bin/oa/gettemplatedetail?access_token="+txt_token2.Text.Trim()+"";
string data = "{\"template_id\":\"模板ID\"}";
string result = PostPage(url, data);
3.获取模板数据
string url = "https://qyapi.weixin.qq.com/cgi-bin/oa/getapprovaldetail?access_token=" + txt_token2.Text.Trim() + "";
string data = "{\"sp_no\":\"模板号\"}";
string result =PostPage(url, data);
txt_data.Text = result;