public AuthenticateWithApiKey ( string apiKey, |
||
apiKey | string | The API key to be used for access |
serverUrl | The Rally server to use (defaults to DEFAULT_SERVER) | |
proxy | Optional proxy configuration | |
리턴 | AuthenticationResult |
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; } }