Class GitHubAPICaller
- java.lang.Object
-
- org.apache.pinot.tools.streams.githubevents.GitHubAPICaller
-
public class GitHubAPICaller extends Object
Helper class to make http calls to GitHub API
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pinot.tools.streams.githubevents.GitHubAPICaller.GitHubAPIResponsecallAPI(String url)Calls the given urlorg.apache.pinot.tools.streams.githubevents.GitHubAPICaller.GitHubAPIResponsecallEventsAPI(String etag)Calls the events APIvoidshutdown()
-
-
-
Method Detail
-
callEventsAPI
public org.apache.pinot.tools.streams.githubevents.GitHubAPICaller.GitHubAPIResponse callEventsAPI(String etag) throws IOException
Calls the events API- Throws:
IOException
-
callAPI
public org.apache.pinot.tools.streams.githubevents.GitHubAPICaller.GitHubAPIResponse callAPI(String url) throws IOException
Calls the given url- Throws:
IOException
-
shutdown
public void shutdown() throws IOException- Throws:
IOException
-
-