Ejemplo n.º 1
0
        private void EnsureConversationVisibility(string userId)
        {
            try
            {
                var url = $"{Constants.ApiUrl}{"private/"}{userId}";

                Internet.Put(url, _apiKey, "{ \"open\": true }");
            }
            catch
            {
                // Probably failed to create a conversation with itself - surprise!
            }
        }
Ejemplo n.º 2
0
        public void AddTag(string messageId, string flowName, string message)
        {
            var url = $"{Constants.ApiUrl}{"flows/"}{Constants.CompanyName}{"/"}{flowName}{"/messages/"}{messageId}";

            Internet.Put(url, _apiKey, "{ \"tags\":  [\"" + message + "\"] }");
        }