I need example code for reading email from gmail by using getsnapshot?