AuthenticateWithApiKey() public method

Authenticates against Rally with the specified credentials
Rally returned an HTML page. This usually occurs when Rally is off-line. Please check the ErrorMessage property for more information. The JSON returned by Rally was not able to be deserialized. Please check the JsonData property for what was returned by Rally.
public AuthenticateWithApiKey ( string apiKey, Uri serverUrl, WebProxy proxy = null ) : AuthenticationResult
apiKey string The API key to be used for access
serverUrl System.Uri The Rally server to use (defaults to DEFAULT_SERVER)
proxy System.Net.WebProxy Optional proxy configuration
return AuthenticationResult
コード例 #1
0
 public RallyApi.RallyRestApi GetApi(string apiKey, string rallyServer)
 {
     RallyApi.RallyRestApi api = new RallyApi.RallyRestApi();
     var result = api.AuthenticateWithApiKey(apiKey, rallyServer);
     if (result == RallyApi.RallyRestApi.AuthenticationResult.Authenticated)
     {
         return api;
     }
     else
     {
         return null;
     }
 }