Ejemplo n.º 1
0
// Run makes the HTTP request corresponding to the LogIntoGoogleAuthenticationCommand command.
func (cmd *LogIntoGoogleAuthenticationCommand) Run(c *client.Client, args []string) error {
	var path string
	if len(args) > 0 {
		path = args[0]
	} else {
		path = "/GoogleLogin"
	}
	resp, err := c.LogIntoGoogleAuthentication(path)
	if err != nil {
		return err
	}
	HandleResponse(c, resp)
	return nil
}