public function Github_Api_Repo::delete in Bibliography Module 7.2
delete repo http://develop.github.com/p/repo.html
Parameters
string $name name of the repository:
string $token delete token:
string $force force repository deletion:
Return value
string|array returns delete_token or repo status
File
- modules/
CiteProc/ Github/ Api/ Repo.php, line 105
Class
- Github_Api_Repo
- Searching repositories, getting repository information and managing repository information for authenticated users.
Code
public function delete($name, $token = null, $force = false) {
if ($token === null) {
$response = $this
->post('repos/delete/' . urlencode($name));
$token = $response['delete_token'];
if (!$force) {
return $token;
}
}
$response = $this
->post('repos/delete/' . urlencode($name), array(
'delete_token' => $token,
));
return $response;
}