You are here

public function Github_Api_User::addEmail in Bibliography Module 7.2

Add an email to the authenticated user. Requires authentication.

Return value

array list of authenticated user emails

File

modules/CiteProc/Github/Api/User.php, line 180

Class

Github_Api_User
Searching users, getting user information and managing authenticated user account information.

Code

public function addEmail($email) {
  $response = $this
    ->post('user/email/add', array(
    'email' => $email,
  ));
  return $response['emails'];
}