小编use*_*379的帖子

如何使用c#连接Asana Rest API?

有没有人使用c#连接到Asana API的代码片段?

他们的网站上有一个Hello World应用程序,但不幸的是它是用ruby编写的.

https://asana.com/developers/documentation/examples-tutorials/hello-world

我这样做是一个快速的项目,只能花费少量的时间.任何帮助将不胜感激.

提前致谢!


跟进:

我尝试了多种访问/身份验证方式,并且一直收到401 Not Authorized错误.

我的最新代码如下所示:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://app.asana.com/api/1.0/users/me");
request.Method = "GET";
request.Headers.Add("Authorization: Basic " + "*MyUniqueAPIKey*");

request.ContentType = "application/x-www-form-urlencoded";
request.Accept = "application/json";

WebResponse ws = request.GetResponse();
Run Code Online (Sandbox Code Playgroud)

.net c# asana

2
推荐指数
1
解决办法
4398
查看次数

标签 统计

.net ×1

asana ×1

c# ×1