I would like to use this google voice API to mark all my messages as read. The code below does not work, any ideas why?
import java.io.IOException;
import java.util.Collection;
import com.techventus.server.voice.Voice;
import com.techventus.server.voice.datatypes.records.SMSThread;
public class voiceApplication {
public static void main(String[] args) throws IOException {
Info info = new Info();
String userName = info.getUsername();
String pass = info.getPassword();
Voice voice = new Voice(userName, pass);
Collection<SMSThread> smsThreads = voice.getSMSThreads(voice.getUnreadSMS());
for (SMSThread message : smsThreads)
{
voice.markAsRead(message.getId());
}
}
}