Is there a .NET RallyRestApi method that uses the apiKey?

有些话、适合烂在心里 提交于 2020-01-05 08:11:33

问题


I would like to have my C# application make a connection to Rally using an API Key, but I have not found a method that supports it similar to the JAVA method:

public RallyRestApi(URI server, String apiKey)


回答1:


You may use this syntax:

restApi = new RallyRestApi( "_abc123","https://rally1.rallydev.com");

where "_abc123" is the key you generated using Rally Application Manager.

I noticed that the documentation does not mention this method of authentication and still shows the old username/password method in the user guide but a commit was made a months ago to support ApiKeys. You have to use 2.0.1 version.




回答2:


Never heard of Rally before, but looking right in the tag page:

RallyRestApi restApi = new RallyRestApi("myuser@company.com", "password",
  "https://rally1.rallydev.com", "1.40");

Right in the first page of the documentation of the Rally toolkit for .NET.



来源:https://stackoverflow.com/questions/25789506/is-there-a-net-rallyrestapi-method-that-uses-the-apikey

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!