I'm trying to follow the Java example on GitHub for using the RallyRestApi in java. The first line of code creates a RallyRestApi object using two parameters. The first is the server, but I cannot figure out how to generate an 'apiKey'. Can someone share how this is done?
Here is the example I'm following https://github.com/RallyTools/RallyRestToolkitForJava/wiki/User-Guide
On your Flow home page, go to the top navigation bar and click Settings. Using the left navigation under Integrations, click Integrations. Click Add Integration in the top right hand corner of your integrations screen.
API keys provide project authorization They are generated on the project making the call, and you can restrict their use to an environment such as an IP address range, or an Android or iOS app. By identifying the calling project, you can use API keys to associate usage information with that project.
Go to https://rally1.rallydev.com/login. You can generate api keys there. It'd be awesome if they noted that in their getting started guides.
The comment in the original question above should be the accepted answer. For what it's worth however there is still a constructor which takes server, username, password as well (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");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With