Hi All,
I am new to this ACS service. I am trying to made chat functionality. I have done as per the suggestion suggested on Ti docs.
Cloud.Chats.create({ to_ids: ids.join(','), message: 'Good morning' }, function (e) { if (e.success) { for (var i = 0; i < e.chats.length; i++) { var chat = e.chats[i]; alert('Success:\n' + 'From: ' + chat.from.first_name + ' ' + chat.from.last_name + '\n' + 'Updated: ' + chat.updated_at + '\n' + 'Message: ' + chat.message); } } else { alert('Error:\n' + ((e.error && e.message) || JSON.stringify(e))); } });But my question is, if I want to send message to someone, from where, I will get their id as I need to add them on the field 'to_ids' on above code block.
Please suggest...