coinbase.go
func (c Client) CreateUser(email string, password string) (*user, error) {
	params := map[string]interface{}{
		"user[email]":    email,
		"user[password]": password,
	}
	holder := userHolder{}
	if err := c.Post("users", params, &holder); err != nil {
		return nil, err
	}
	if err := checkApiErrors(holder.response, "CreateUser"); err != nil {
		return nil, err
	}
	return &holder.User, nil
}
func (c Client) CreateUser(email string, password string) (*user, error) {
	params := map[string]interface{}{
		"user[email]":    email,
		"user[password]": password,
	}
	holder := userHolder{}
	if err := c.Post("users", params, &holder); err != nil {
		return nil, err
	}
	if err := checkApiErrors(holder.response, "CreateUser"); err != nil {
		return nil, err
	}
	return &holder.User, nil
}
func ( c Client ) CreateUser ( email string , password string ) ( * user , error ) { params := map [ string ] interface { } { " " : email , " " : password , } holder := userHolder { } if err := c . Post ( " " , params , & holder ) ; err != nil { return nil , err } if err := checkApiErrors ( holder . response , " " ) ; err != nil { return nil , err } return & holder . User , nil }
// CreateUser creates a new user given an email and password
CreateUser creates a new user given an email and password