org.idlesoft.libraries.ghapi
Class Object

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

public class Object
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
Object(GitHubAPI a)
           
 
Method Summary
 APIAbstract.Response blob(java.lang.String owner, java.lang.String repositoryName, java.lang.String treeSha, java.lang.String path)
          Fetches data about a blob given it's tree SHA and path
 APIAbstract.Response list_blobs(java.lang.String owner, java.lang.String repositoryName, java.lang.String treeSha)
          Fetches a list of all blobs for a certain tree SHA
 APIAbstract.Response raw(java.lang.String owner, java.lang.String repositoryName, java.lang.String sha)
          Get the raw data of a blob
 APIAbstract.Response tree(java.lang.String owner, java.lang.String repositoryName, java.lang.String sha)
          Fetches the contents of the tree given the tree SHA
 
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

Object

public Object(GitHubAPI a)
Method Detail

tree

public APIAbstract.Response tree(java.lang.String owner,
                                 java.lang.String repositoryName,
                                 java.lang.String sha)
Fetches the contents of the tree given the tree SHA

Parameters:
owner -
repositoryName -
sha -
Returns:
a Response object containing the contents of the tree

blob

public APIAbstract.Response blob(java.lang.String owner,
                                 java.lang.String repositoryName,
                                 java.lang.String treeSha,
                                 java.lang.String path)
Fetches data about a blob given it's tree SHA and path

Parameters:
owner -
repositoryName -
treeSha -
path -
Returns:
a Response object containing the blob information

list_blobs

public APIAbstract.Response list_blobs(java.lang.String owner,
                                       java.lang.String repositoryName,
                                       java.lang.String treeSha)
Fetches a list of all blobs for a certain tree SHA

Parameters:
owner -
repositoryName -
treeSha -
Returns:
a Response object containing the list of blobs

raw

public APIAbstract.Response raw(java.lang.String owner,
                                java.lang.String repositoryName,
                                java.lang.String sha)
Get the raw data of a blob

Parameters:
owner -
repositoryName -
sha -
Returns:
a Response object containing the raw data