You are here

public function Github_Api_Object::getRawData in Bibliography Module 7.2

Returns the raw text content of the object. http://develop.github.com/p/object.html#raw_git_data

Parameters

string $username the username:

string $repo the repo:

string $objectSHA the object sha can be either a blob SHA1, a tree SHA1 or a commit SHA1:

Return value

string raw text content of the blob, tree or commit object

File

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

Class

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

Code

public function getRawData($username, $repo, $objectSHA) {
  $response = $this
    ->get('blob/show/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($objectSHA), array(), array(
    'format' => 'text',
  ));
  return $response;
}