'Returns the list of hid values for items in a history'

def get_hids_in_history(self, history_id):

    hids = []
    api_url = ('/api/histories/%s/contents' % history_id)
    hids = [history_item['hid'] for history_item in self.json_from_url(api_url)]
    return hids
