// NewClient returns a new Spontit client
NewClient returns a new Spontit client
// NewClient returns a new Spontit client
func NewClient() (*Client, error) {
	err := godotenv.Load()
	if err != nil {
		return nil, fmt.Errorf("Error loading .env file")
	}
	config := &Config{
		userID: os.Getenv("SPONTIT_USERID"),
		key:    os.Getenv("SPONTIT_KEY"),
	}
	return &Client{
		config:     config,
		httpClient: http.DefaultClient,
	}, nil
}
func NewClient ( ) ( * Client , error ) { err := godotenv . Load ( ) if err != nil { return nil , fmt . Errorf ( " " ) } config := & Config { userID : os . Getenv ( " " ) , key : os . Getenv ( " " ) , } return & Client { config : config , httpClient : http . DefaultClient , } , nil }
NewClient returns a new Spontit client
NewClient returns a new Spontit client