Created
October 24, 2018 00:59
-
-
Save agoodkind/e975e84ae2cbfe201136497be7444c14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.get("/svc/user/counts?unread_messages=true").done(function (data) { | |
var users_messages = data.unread_messages[Object.keys(data.unread_messages)[0]] | |
jQuery.each(users_messages, function (msg_id) { | |
jQuery.get("/svc/conversations/messages?conversation_id=" + msg_id).done(function(user_message) { | |
console.log(user_message) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment