code: def get_measurements(self, station_id, aggregated_on, from_timestamp,
                           to_timestamp, limit=100):
          
          assert station_id is not None
          assert aggregated_on is not None
          assert from_timestamp is not None
          assert from_timestamp > 0
          assert to_timestamp is not None
          assert to_timestamp > 0
          if to_timestamp < from_timestamp:
              raise ValueError("End timestamp can't be earlier than begin timestamp")
          assert isinstance(limit, int)
          assert limit >= 0
          query = {'appid': self.API_key,
                   'station_id': station_id,
                   'type': aggregated_on,
                   'from': from_timestamp,
                   'to': to_timestamp,
                   'limit': limit}
          status, data = self.http_client.get_json(
              MEASUREMENTS_URI,
              params=query,
              headers={'Content-Type': 'application/json'})
          return [self.aggregated_measurements_parser.parse_dict(item) for item in data]
docs: Reads measurements of a specified station recorded in the specified time
          window and aggregated on minute, hour or day. Optionally, the number of
          resulting measurements can be limited.
  
          :param station_id: unique station identifier
          :type station_id: str
          :param aggregated_on: aggregation time-frame for this measurement
          :type aggregated_on: string between 'm','h' and 'd'
          :param from_timestamp: Unix timestamp corresponding to the beginning of
            the time window
          :type from_timestamp: int
          :param to_timestamp: Unix timestamp corresponding to the end of the
            time window
          :type to_timestamp: int
          :param limit: max number of items to be returned. Defaults to 100
          :type limit: int
          :returns: list of *pyowm.stationsapi30.measurement.AggregatedMeasurement*
            objects