org.idlesoft.libraries.ghapi
Class User

java.lang.Object
  extended by org.idlesoft.libraries.ghapi.APIAbstract
      extended by org.idlesoft.libraries.ghapi.User

public class User
extends APIAbstract


Nested Class Summary
 
Nested classes/interfaces inherited from class org.idlesoft.libraries.ghapi.APIAbstract
APIAbstract.Response
 
Field Summary
 
Fields inherited from class org.idlesoft.libraries.ghapi.APIAbstract
api, login, password
 
Constructor Summary
User(GitHubAPI a)
           
 
Method Summary
 APIAbstract.Response activity(java.lang.String username)
          Fetches a user's public activity feed
 APIAbstract.Response follow(java.lang.String username)
          Follows a given user
 APIAbstract.Response followers(java.lang.String username)
          Fetch a list of a user's followers
 APIAbstract.Response following(java.lang.String username)
          Fetch a list of people a user is following
 APIAbstract.Response info(java.lang.String username)
          Fetches info for a given user
 APIAbstract.Response private_activity()
          Fetches a user's private activity feed
 APIAbstract.Response search(java.lang.String query)
          Searches GitHub for users matching supplied query
 APIAbstract.Response timeline()
          Fetches GitHub's public timeline
 APIAbstract.Response unfollow(java.lang.String username)
          Unfollows a given user
 APIAbstract.Response watching(java.lang.String username)
          Fetches a list of repositories a user is watching
 
Methods inherited from class org.idlesoft.libraries.ghapi.APIAbstract
encode, HTTPGet, HTTPPost, login
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User(GitHubAPI a)
Method Detail

search

public APIAbstract.Response search(java.lang.String query)
Searches GitHub for users matching supplied query

Parameters:
query -
Returns:
a Response object containing status code and search results

info

public APIAbstract.Response info(java.lang.String username)
Fetches info for a given user

Parameters:
username -
Returns:
a Response object containing status code and user information

following

public APIAbstract.Response following(java.lang.String username)
Fetch a list of people a user is following

Parameters:
username -
Returns:
a Response object containing status code and following list

followers

public APIAbstract.Response followers(java.lang.String username)
Fetch a list of a user's followers

Parameters:
username -
Returns:
a Response object containing status code and list of followers

follow

public APIAbstract.Response follow(java.lang.String username)
Follows a given user

Parameters:
username -
Returns:
a Response object containing status code and response body

unfollow

public APIAbstract.Response unfollow(java.lang.String username)
Unfollows a given user

Parameters:
username -
Returns:
a Response object containing status code and response body

watching

public APIAbstract.Response watching(java.lang.String username)
Fetches a list of repositories a user is watching

Parameters:
username -
Returns:
a Response object containing status code and list of watched repositories

activity

public APIAbstract.Response activity(java.lang.String username)
Fetches a user's public activity feed

Parameters:
username -
Returns:
a Response object containing status code and public activity feed

private_activity

public APIAbstract.Response private_activity()
Fetches a user's private activity feed

Parameters:
username -
token -
Returns:
a Response object containing status code and private activity feed

timeline

public APIAbstract.Response timeline()
Fetches GitHub's public timeline

Returns:
a Response object containing status code and timeline feed