Class GitHubClientFactory

java.lang.Object
org.apache.camel.component.github2.GitHubClientFactory

public final class GitHubClientFactory extends Object
Factory for creating GitHub client instances.
  • Method Details

    • createClient

      public static org.kohsuke.github.GitHub createClient(String oauthToken, String apiUrl) throws IOException
      Creates a GitHub client with the specified OAuth token and optional API URL.
      Parameters:
      oauthToken - the OAuth token for authentication
      apiUrl - the API URL for GitHub Enterprise (null or empty for github.com)
      Returns:
      a configured GitHub client
      Throws:
      IOException - if the client cannot be created