func (r *SecureFile) Get(secureFilePath string, output io.Writer) error {
	resp, err := r.c.DoRequest(http.MethodGet,
		path.Join(secureFileBasePath, secureFilePath),
		map[string]string{},
		nil)
	if resp != nil {
		defer resp.Body.Close()
	}
	if err != nil {
		return fmt.Errorf("error while downloading secure file: %v", err)
	}
	if resp.StatusCode != http.StatusOK {
		return fmt.Errorf("error while trying to download secure file %s. Got HTTP status code %d",
			secureFilePath,
			resp.StatusCode)
	}
	_, err = io.Copy(output, resp.Body)
	if err != nil {
		return err
	}
	return nil
}
Get downloads a secure file under localfile. File will be saved in output
package cerberus
import (
	"bytes"
	"fmt"
	"io"
	"mime/multipart"
	"net/http"
	"path"
	"github.com/Nike-Inc/cerberus-go-client/api"
)
type SecureFile struct {
	c *Client
}
var secureFileBasePath = "/v1/secure-file"
var secureFileListBasePath = "/v1/secure-files"
func (r *SecureFile) List(rootpath string) (*api.SecureFilesResponse, error) {
	resp, err := r.c.DoRequest(http.MethodGet,
		path.Join(secureFileListBasePath, rootpath)+"/",
		map[string]string{
			"list": "true",
		},
		nil)
	if resp != nil {
		defer resp.Body.Close()
	}
	if err != nil {
		return nil, fmt.Errorf("error while trying to get secure files: %v", err)
	}
	if resp.StatusCode != http.StatusOK {
		return nil, fmt.Errorf("error while trying to list secure files. Got HTTP status code %d",
			resp.StatusCode)
	}
	sfr := &api.SecureFilesResponse{}
	err = parseResponse(resp.Body, sfr)
	if err != nil {
		return nil, err
	}
	return sfr, nil
}