Get range of group chats by date range

244 views
Skip to first unread message

UAB OHS Dev

unread,
Sep 9, 2016, 12:23:49 PM9/9/16
to GroupMe API Support
I realize it's possible to retrieve messages created before a given message ID, but is it also possible to retrieve messages before and/or after a given created_at value?

On a related note, is created_at parameter's value a unix timestamp?

Thanks in advance,

Regards,
Randy

Martin (GroupMe dev)

unread,
Sep 12, 2016, 4:55:43 AM9/12/16
to GroupMe API Support
Hi,
check our documentation at https://dev.groupme.com/docs/v3#messages_index. We do not support retrieving by created_at column.

Regard your second question - yes, i believe that created_at is unix timestamp in GMT.

Regards,
Martin

Dne pátek 9. září 2016 18:23:49 UTC+2 UAB OHS Dev napsal(a):

Jake Bathman

unread,
Sep 12, 2016, 6:33:11 PM9/12/16
to GroupMe API Support, UAB OHS Dev
created_at is a unix timestamp, and as far as I know you can't specify a timestamp range for messages. You'll have to specify the message ID, which I believe has a timestamp component embedded that you may be able to take advantage of to start your message group.

--
Jake Bathman
twitter.com/jakebathman
--
You received this message because you are subscribed to the Google Groups "GroupMe API Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to groupme-api-sup...@googlegroups.com.
To post to this group, send email to groupme-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/groupme-api-support/633f1659-ede9-4747-8a9b-6098bd5644d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Randy Tims

unread,
Sep 12, 2016, 6:33:12 PM9/12/16
to Jake Bathman, GroupMe API Support
Good to know. 

Are change requests handled through this forum?

I work for a group of first responders who use GroupMe to communicate in the field. I'm working on a bot to communicate with them through our incident tracking system. 

When the incident is completed in our system I'd like to harvest the chat transcripts b/w the incident's start and end dates. 

I'm not sure I'll know the message IDs, but will know the date range involved. 

If this is not the forum for recommending suggested changes to the API, then could you point me in the right direction?

Regards,
Randy

On Saturday, September 10, 2016, Jake Bathman <jake.b...@gmail.com> wrote:
created_at is a unix timestamp, and as far as I know you can't specify a timestamp range for messages. You'll have to specify the message ID, which I believe has a timestamp component embedded that you may be able to take advantage of to start your message group.

--
Jake Bathman
twitter.com/jakebathman

On Sep 9, 2016, 11:23 AM -0500, UAB OHS Dev <tims....@gmail.com>, wrote:
I realize it's possible to retrieve messages created before a given message ID, but is it also possible to retrieve messages before and/or after a given created_at value?

On a related note, is created_at parameter's value a unix timestamp?

Thanks in advance,

Regards,
Randy

--
You received this message because you are subscribed to the Google Groups "GroupMe API Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to groupme-api-support+unsub...@googlegroups.com.
To post to this group, send email to groupme-api-support@googlegroups.com.

Martin (GroupMe dev)

unread,
Sep 12, 2016, 6:38:32 PM9/12/16
to GroupMe API Support, jake.b...@gmail.com
This is best place you can get to ;)

What is your exact use-case? Do you have one chat per incident? Or are you reusing chats? In first case, you can just "scroll back" ( == seek via API) through history to find first message of given chat and then pile up related conversation. For short-term incidents is this definately a way to go.

Regards,
Martin

Dne úterý 13. září 2016 0:33:12 UTC+2 UAB OHS Dev napsal(a):
Reply all
Reply to author
Forward
0 new messages