func (plug *PlugDJ) Get(endpoint string) (*http.Response, error) {
	resp, err := plug.web.Get(plug.getAPIURL() + endpoint)
	if err != nil {
		return nil, err
	}

	// If the status code is not 200, error away
	if resp.StatusCode != 200 {
		quickread(resp.Body)
		resp.Body.Close()
		return nil, ErrUnknownResponse{resp, endpoint}
	}

	return resp, nil
}
// Get makes a get request to the plug API
Get makes a get request to the plug API
// Get makes a get request to the plug API
func (plug *PlugDJ) Get(endpoint string) (*http.Response, error) {
	resp, err := plug.web.Get(plug.getAPIURL() + endpoint)
	if err != nil {
		return nil, err
	}
	if resp.StatusCode != 200 {
		quickread(resp.Body)
		resp.Body.Close()
		return nil, ErrUnknownResponse{resp, endpoint}
	}
	return resp, nil
}
func ( plug * PlugDJ ) Get ( endpoint string ) ( * http . Response , error ) { resp , err := plug . web . Get ( plug . getAPIURL ( ) + endpoint ) if err != nil { return nil , err } if resp . StatusCode != 200 { quickread ( resp . Body ) resp . Body . Close ( ) return nil , ErrUnknownResponse { resp , endpoint } } return resp , nil }
Get makes a get request to the plug API
Get makes a get request to the plug API
// If the status code is not 200, error away