compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (17)

View Page History
* Zend\Service\GitHub\Exception\RuntimeException
* Zend\Service\GitHub\Exception\UnexpectedValueException
* Zend\Service\GitHub\Exception\ResponseErrorException
* Zend\Service\GitHub\Exception\NonAuthorizationException
* Zend\Service\GitHub\Gist
* Zend\Service\GitHub\Issues
* Zend\Service\GitHub\Issues\Comment
* Zend\Service\GitHub\Issues\Label
* Zend\Service\GitHub\Network
* Zend\Service\GitHub\Repository
* Zend\Service\GitHub\Repository\Collaborators
* Zend\Service\GitHub\Repository\Key
* Zend\Service\GitHub\Repository\Set
* Zend\Service\GitHub\Tree
* Zend\Service\GitHub\User
* Zend\Service\GitHub\User\Email Zend\Service\GitHub\Teams
* Zend\Service\GitHub\User\Key Zend\Service\GitHub\Organziations
{zone-data}

$githubClient = new Zend\Service\GitHub('login-name', 'api-token');

// Set response type (JSON, XML, YAML) the Network API only supports JSON
$githubClient->setResponseType($responseType);

// Search for a specific user
$githubClient->user->search($username);
'location' => 'Germany'
);
$githubClient->user->show($user, $data);
$githubClient->user->update($data);

// List email addresses of authenticated user
$githubClient->user->getEmails();
// Add Email address to authenticated user
$githubClient->user->email->add($email); $githubClient->user->addEmail($email);
// Remove Email address from authenticated user
$githubClient->user->email->remove($email); $githubClient->user->removeEmail($email);

// Retrieve a list of users following $username
$githubClient->user->getKeys();
// Add Key to authenticated user
$githubClient->user->key->add($title, $githubClient->user->addKey($title, $key);
// Remove Key from authenticated user
$githubClient->user->key->remove($id); $githubClient->user->removeKey($id);

// Follow another user (as authenticated user)
protected $_authCredentials;

public function __construct ($login = null, $token = null, $setBaseUri = false){}
$responseType = 'json', $setBaseUri = false){}

public function __get($part){}
public function setLogin($value){}

public function getResponseType(){}

public function setResponseType($value){}

public function setLocalHttpClient(Zend\Http\Client $client){}

public function getLocalHttpClient(){}

protected function _isAuthorizationInitialized(){}

namespace Zend\Service\GitHub\Exception;

class ResponseErrorException
extends \LogicException
implements Zend\Service\GitHub\Exception