17

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.

Jug6ernaut
  • 8,219
  • 2
  • 26
  • 26

1 Answers1

12

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.

Jay Lee
  • 13,415
  • 3
  • 28
  • 59
  • Is there way to at least automate or Simi automate the process of enabling the label? Checking the state of the label being able ect – Jug6ernaut Dec 15 '12 at 18:27
  • You could provide the user with a direct link to the Settings -> Labels section of their Gmail: https://mail.google.com/mail/u/0/?shva=1#settings/labels. This might not work if they're logged into multiple accounts though. – Jay Lee Dec 17 '12 at 16:04
  • I tried this before. This only worka(on a mobile device) if you request non mobile site else it redirects to mobile Gmail website. Still much to complicated to expect a user to do sadly. – Jug6ernaut Dec 18 '12 at 19:34