You are here

public function Github_Api_Object::listBlobs in Bibliography Module 7.2

Lists the data blobs of a tree by tree SHA http://develop.github.com/p/object.html#blobs

Parameters

string $username the username:

string $repo the repo:

string $treeSHA the tree sha:

string $path the path:

Return value

array data blobs of tree

File

modules/CiteProc/Github/Api/Object.php, line 38

Class

Github_Api_Object
Getting full versions of specific files and trees in your Git repositories.

Code

public function listBlobs($username, $repo, $treeSHA) {
  $response = $this
    ->get('blob/all/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($treeSHA));
  return $response['blobs'];
}