com.mycorp.examples.githubservice.impl
Class GitHubService

java.lang.Object
  extended by com.mycorp.examples.githubservice.impl.GitHubService
All Implemented Interfaces:
IGitHubService

public class GitHubService
extends java.lang.Object
implements IGitHubService

Example OSGi service for retrieving some data from GitHub.

Since:
1.0

Constructor Summary
GitHubService()
           
 
Method Summary
 java.lang.String[] getIssues(java.lang.String pAccessToken, java.lang.String owner, java.lang.String pRepository)
          Gets all issues from repository.
 java.lang.String[] getRepositories(java.lang.String pAccessToken)
          Gets all repositories.
static void main(java.lang.String[] args)
          Stand alone service test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitHubService

public GitHubService()
Method Detail

main

public static void main(java.lang.String[] args)
Stand alone service test. To get an access token see see https://help.github.com/articles/creating-an-access-token- for-command-line-use/


getRepositories

public java.lang.String[] getRepositories(java.lang.String pAccessToken)
Description copied from interface: IGitHubService
Gets all repositories.

Specified by:
getRepositories in interface IGitHubService
Parameters:
pAccessToken - see https://help.github.com/articles/creating-an-access-token- for-command-line-use/
Returns:
All this repositories for this access token

getIssues

public java.lang.String[] getIssues(java.lang.String pAccessToken,
                                    java.lang.String owner,
                                    java.lang.String pRepository)
Description copied from interface: IGitHubService
Gets all issues from repository.

Specified by:
getIssues in interface IGitHubService
Parameters:
pAccessToken - see https://help.github.com/articles/creating-an-access-token- for-command-line-use/
pRepository - the name of the repository to investigate
Returns:
All issues for the passed repository