Sample code for people wanting to access labstats API