public function Github_Api_User::follow in Bibliography Module 7.2
Make the authenticated user follow the specified user. Requires authentication. http://develop.github.com/p/users.html#following_network
Parameters
string $username the username to follow:
Return value
array list of followed users
File
- modules/
CiteProc/ Github/ Api/ User.php, line 92
Class
- Github_Api_User
- Searching users, getting user information and managing authenticated user account information.
Code
public function follow($username) {
$response = $this
->post('user/follow/' . urlencode($username));
return $response['users'];
}