func (plug *PlugDJ) GetData(endpoint string, data interface{}, meta interface{}) error {
	resp, err := plug.Get(endpoint)
	if err != nil {
		return err
	}
	defer resp.Body.Close()

	if err := handleResponse(resp, &data, &meta); err != nil {
		return err
	}

	return nil
}
// GetData allows you to receive info as a struct
GetData allows you to receive info as a struct
// GetData allows you to receive info as a struct
func (plug *PlugDJ) GetData(endpoint string, data interface{}, meta interface{}) error {
	resp, err := plug.Get(endpoint)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	if err := handleResponse(resp, &data, &meta); err != nil {
		return err
	}
	return nil
}
func ( plug * PlugDJ ) GetData ( endpoint string , data interface { } , meta interface { } ) error { resp , err := plug . Get ( endpoint ) if err != nil { return err } defer resp . Body . Close ( ) if err := handleResponse ( resp , & data , & meta ) ; err != nil { return err } return nil }
GetData allows you to receive info as a struct
GetData allows you to receive info as a struct