本人的公众号要申请成为开发者,必须经过token认证。微信公众号的官方代码只列出了PHP代码的实例,明显是歧视.net用户。我用的asp.net mvc中的web api,结果调了好久都没有成功,最后发现只要下面几句即可:

public void Get()
{
     string temp = HttpContext.Current.Request.QueryString["echostr"];
     HttpContext.Current.Response.Write(temp);
     HttpContext.Current.Response.End();
}

 

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2021-12-04
  • 2021-12-16
  • 2021-10-02
  • 2021-04-02
  • 2022-02-18
  • 2022-01-28
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2021-06-19
  • 2022-01-30
  • 2022-12-23
  • 2022-01-26
  • 2021-04-05
相关资源
相似解决方案