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! } }
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 + "\"] }"); }