Exemplo n.º 1
0
		/// <summary>
		/// Creates a new conversation on the given object. Works similarly to the create notification method in other regards.
		/// <para>Podio API Reference: https://developers.podio.com/doc/conversations/create-conversation-on-object-22442 </para>
		/// </summary>
		/// <param name="refType">Type of the reference.</param>
		/// <param name="refId">The reference identifier.</param>
		/// <param name="conversationCreateRequest">The conversation create request.</param>
		/// <returns>Task&lt;Conversation&gt;.</returns>
		public Task<Conversation> CreateConversationOnObject(string refType, int refId, ConversationCreateRequest conversationCreateRequest)
		{
			string url = string.Format("/conversation/{0}/{1}/", refType, refId);
			return _podio.PostAsync<Conversation>(url, conversationCreateRequest);
		}
Exemplo n.º 2
0
		/// <summary>
		/// Creates a new conversation with a list of users. Once a conversation is started, the participants cannot (yet) be changed.
		/// <para>Podio API Reference: https://developers.podio.com/doc/conversations/create-conversation-v2-37301474 </para>
		/// </summary>
		/// <param name="conversationCreateRequest">The conversation create request.</param>
		/// <returns>Task&lt;Conversation&gt;.</returns>
		public Task<Conversation> CreateConversation(ConversationCreateRequest conversationCreateRequest)
		{
			string url = "/conversation/v2/";
			return _podio.PostAsync<Conversation>(url, conversationCreateRequest);
		}