Examples of GitHubServiceFactory


Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    FeedService service = factory.createFeedService();
    Feed feed = service.getPublicUserFeed("apache", 10);
    printResult(feed);
  }
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    NetworkService service = factory.createNetworkService();
    List<NetworkCommit> commits = service.getNetworkData("facebook", "tornado", "7b80c2f4db226d6fa3a7f3dfa59277da1d642f91");
    for (NetworkCommit commit : commits) {
      printResult(commit);
    }
  }
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    PullRequestService service = factory.createPullRequestService();
    List<PullRequest> pullRequests = service.getPullRequests("technoweenie", "faraday");
    for (PullRequest pullRequest : pullRequests) {
      printResult(pullRequest);         
    }
    PullRequest pullRequest = service.getPullRequest("technoweenie", "faraday", 15);
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    ObjectService service = factory.createObjectService();
    List<Tree> trees = service.getTree("facebook", "tornado", "7b80c2f4db226d6fa3a7");
    for (Tree tree : trees) {
      printResult(tree);         
    }
    List<Blob> blobs = service.getBlobs("facebook", "tornado", "7b80c2f4db226d6fa3a7");
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    IssueService service = factory.createIssueService();
    List<Issue> issues = service.searchIssues("facebook", "tornado", Issue.State.OPEN, "type");
    for (Issue issue : issues) {
      printResult(issue);
    }
    Issue issue = service.getIssue("facebook", "tornado", 1);
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    GistService service = factory.createGistService();
    Gist gist = service.getGist("289179");
    printResult(gist);
    System.out.println(convertStreamToString(service.getGistContent("289179", "TimeZoneDSTUtil.java")));
  }
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @throws Exception
   *             the exception
   */
  public static void main(String[] args) throws Exception {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    RepositoryService service = factory.createRepositoryService();
    List<Repository> repositories = service.searchRepositories("hadoop");
    for (Repository repository : repositories) {
      printResult(repository);
    }
    Map<Language, Long> breakDown = service.getLanguageBreakdown("facebook", "tornado");
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    UserService service = factory.createUserService();
    List<User> users = service.searchUsersByName("john");
    for (User user : users) {
      printResult(user);     
    }
    User user = service.getUserByEmail("nabeelmukhtar@yahoo.com");
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @throws Exception
   *             the exception
   */
  public static void main(String[] args) throws Exception {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    OrganizationService service = factory.createOrganizationService();
    Organization organization = service.getOrganization("github");
    printResult(organization);
    List<User> publicMembers = service.getPublicMembers("github");
    for (User user : publicMembers) {
      printResult(user);
View Full Code Here

Examples of com.github.api.v2.services.GitHubServiceFactory

   *
   * @param args
   *            the arguments
   */
  public static void main(String[] args) {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    JobService service = factory.createJobService();
    List<Job> jobs = service.searchJobs("python", "new york");
    for (Job job : jobs) {
      printResult(job);
    }
    Job job = service.getJob("82eeae34-65ff-11e0-99be-a34ef36756d3");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.