You are here

public function Github_Api_Object::showBlob in Bibliography Module 7.2

Get the data about a blob by tree SHA and file path. 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 blob of tree and path

File

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

Class

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

Code

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