func NewClientFromEnv() (*Client, error) {
	user := viper.GetString("api.user")
	pass := viper.GetString("api.password")
	port := viper.GetInt("api.port")
	viper.SetDefault("api.hostname", "localhost")
	host := viper.GetString("api.hostname")
	return New(user, pass, host, port)
}
NewClientFromEnv creates a new client from the client configuration properties.
package client
import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"net/url"
	"github.com/pivotal-cf/brokerapi"
	"github.com/spf13/viper"
)
const (
	ClientsBrokerApiVersion = "2.13"
)