Gupshup Whatsapp API的403禁止的错误

问题描述

在尝试使用带有C#Winform应用程序的GupShup whatsapp API发送Whatsapp文本消息时,我遇到了禁止错误。相同的代码可以在Web应用程序中正常工作。

详细的错误代码如下:

{StatusCode: 403,ReasonPhrase: 'Forbidden',Version: 1.1,Content: System.Net.Http.StreamContent,Headers:
{
  Connection: close
  Access-Control-Allow-Origin: *
  Pragma: no-cache
  Access-Control-Allow-Headers: origin,content-type,accept,authorization
  Access-Control-Allow-Credentials: true
  Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS,HEAD
  X-Content-Type-Options: nosniff
  Strict-Transport-Security: max-age=15768000
  Cache-Control: no-store,must-revalidate,no-cache
  Date: Thu,13 Aug 2020 14:49:59 GMT
  Server: Gupshup-Webserver
  Via: kong/0.4.2
  Content-Length: 13
  Content-Type: text/plain; charset=UTF-8
  Expires: 0
}}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)