You are here

public function Github_Api_Repo::create in Bibliography Module 7.2

create repo http://develop.github.com/p/repo.html

Parameters

string $name name of the repository:

string $description repo description:

string $homepage homepage url:

bool $public 1 for public, 0 for private:

Return value

array returns repo data

File

modules/CiteProc/Github/Api/Repo.php, line 83

Class

Github_Api_Repo
Searching repositories, getting repository information and managing repository information for authenticated users.

Code

public function create($name, $description = '', $homepage = '', $public = true) {
  $response = $this
    ->post('repos/create', array(
    'name' => $name,
    'description' => $description,
    'homepage' => $homepage,
    'public' => $public,
  ));
  return $response['repository'];
}