17
votes

I'm looking for a method to access Google Talk chat history. Method to be used for an android device but does not have to be specific to it. I am looking for preferably an official method, but this is not required. AFAIK there is no official method. The method must pecifically not,

  1. Through IMAP (requires chat and label to be enabled)
  2. Through Talk.apk's ContentResolver (requires that the talk.apk be installed)

unless it somehow bypasses the problems listed after the methods above.

Googles different Google Talk applications are able to do chat history but there is no documentation that im aware of to how this works.

1

1 Answers

12
votes

Google Apps Script has a getChatThreads() API Call.

You're going to face issues with any of these methods. I think the best (of the bad) solutions is to use IMAP and include steps for enabling the Chat label to be accessed via IMAP. One nice thing about OAuth 2.0 Gmail IMAP authentication is that it doesn't depend on the user turning IMAP on in GMail, it just works regardless of the user's IMAP setting.