You are here

public function Github_Api_User::update in Bibliography Module 7.2

Update user informations. Requires authentication. http://develop.github.com/p/users.html#authenticated_user_management

Parameters

string $username the username to update:

array $data key=>value user attributes to update.: key can be name, email, blog, company or location

Return value

array informations about the user

File

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

Class

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

Code

public function update($username, array $data) {
  $response = $this
    ->post('user/show/' . urlencode($username), array(
    'values' => $data,
  ));
  return $response['user'];
}