added getdata method to readings api