Querying chats - how do I get 1 user's chats?

19 views
Skip to first unread message

pratik patel

unread,
Mar 2, 2012, 3:27:38 PM3/2/12
to cocoafi...@googlegroups.com
I am trying to get all chats for a specific, logged in, user. I am not using chat groups explicitly - all my communications are 1 user to 1 user. Is this possible - to find all of a single user's chats with only his userid? I'm aware I could use the "message" option, which is what I'm trying next... just wanted to get this clarified so I know.

-p

Wei Kong

unread,
Mar 2, 2012, 6:24:37 PM3/2/12
to cocoafi...@googlegroups.com
You can do chats/query.json where user_id is the user you would like to lookup

March 2, 2012 12:27 PM

pratik patel

unread,
Mar 7, 2012, 3:26:15 PM3/7/12
to cocoafi...@googlegroups.com
Sorry I should have been more clear - I wants to find chats by the RECEIVER, not SENDER.  I see in the API docs where I can pass the user_id to get all messages from a sender.
Perhaps a description of the use case will help:

Find all the chats for the CURRENT_USER since LAST_VIEWED_TIME. The idea is that I don't want to pull a large dataset (that will also need to be parsed) and I want to see all chat messages from other users since a given time to update a summary chat view as well as a specific hat view.

-p

Wei Kong

unread,
Mar 21, 2012, 1:36:08 AM3/21/12
to cocoafi...@googlegroups.com
Sorry, I forgot to answer. We currently don't have a way and we will look into provide a solution
Reply all
Reply to author
Forward
0 new messages