*/ class Blobs extends AbstractApi { public function configure($bodyType = null) { if ('raw' == $bodyType) { $this->client->setHeaders(array( sprintf('Accept: application/vnd.github.%s.raw', $this->client->getOption('api_version')) )); } } public function show($username, $repository, $sha) { $response = $this->get('repos/'.urlencode($username).'/'.urlencode($repository).'/git/blobs/'.urlencode($sha)); return $response; } public function create($username, $repository, array $params) { if (!isset($params['content'], $params['encoding'])) { throw new MissingArgumentException(array('content', 'encoding')); } return $this->post('repos/'.urlencode($username).'/'.urlencode($repository).'/git/blobs', $params); } }