public function getStreamsSegment($id, $types, $resolution = null, $series_type = 'distance')
{
$path = '/segments/' . $id . '/streams/' . $types;
$parameters = array('resolution' => $resolution, 'series_type' => $series_type);
$result = $this->adapter->get($path, $parameters, $this->getHeaders());
return $this->format($result);
}