func (cs *Client) WhoAmI() (*params.WhoAmIResponse, error) {
	var response params.WhoAmIResponse
	if err := cs.Get("/whoami", &response); err != nil {
		return nil, errgo.Mask(err, isAPIError)
	}
	return &response, nil
}
// WhoAmI returns the user and list of groups associated with the macaroon
// used to authenticate.
WhoAmI returns the user and list of groups associated with the macaroon
used to authenticate.
// WhoAmI returns the user and list of groups associated with the macaroon // used to authenticate .
func (cs *Client) WhoAmI() (*params.WhoAmIResponse, error) {
	var response params.WhoAmIResponse
	if err := cs.Get("/whoami", &response); err != nil {
		return nil, errgo.Mask(err, isAPIError)
	}
	return &response, nil
}
func ( cs * Client ) WhoAmI ( ) ( * params . WhoAmIResponse , error ) { var response params . WhoAmIResponse if err := cs . Get ( " " , & response ) ; err != nil { return nil , errgo . Mask ( err , isAPIError ) } return & response , nil }
WhoAmI returns the user and list of groups associated with the macaroon
used to authenticate.
WhoAmI returns the user and list of groups associated with the macaroon used to authenticate .