Rally: how to generate an API key?

I am trying to follow the Java example on GitHub for using RallyRestApi in java. The first line of code creates the RallyRestApi object using two parameters. The first is the server, but I cannot figure out how to generate the "apiKey". Can someone share how this is done?

Here is an example that I follow https://github.com/RallyTools/RallyRestToolkitForJava/wiki/User-Guide

+6
source share
3 answers

The comment in the original question above should be the accepted answer. For what it's worth, however, there is a constructor that also accepts a server, username and password (although this is considered deprecated in favor of the api key approach)

//preferred RallyRestApi api = new RallyRestApi(new URI("https://rally1.rallydev.com", "myAPIKey"); //deprecated, but still possible RallyRestApi api = new RallyRestApi(new URI("https://rally1.rallydev.com", "username", "password"); 
+1
source

Go to https://rally1.rallydev.com/login . You can generate api keys. It would be great if they noted that in their novice manuals.

+10
source
 RallyRestApi restApi = new RallyRestApi(); restApi.AuthenticateWithApiKey("Your Key", "https://rally1.rallydev.com", null); 

The above describes how to use the API key using C #. This is probably very similar to Java. (Zero is a proxy server, configured for your needs).

0
source

Source: https://habr.com/ru/post/972205/


All Articles