Class GitHubClientFactory
java.lang.Object
org.apache.camel.component.github2.GitHubClientFactory
Factory for creating GitHub client instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.kohsuke.github.GitHubcreateClient(String oauthToken, String apiUrl) Creates a GitHub client with the specified OAuth token and optional API URL.
-
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 authenticationapiUrl- 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
-