示例#1
0
		/// <summary>
		/// Resubscribes a previously unsubscribed contact.
		/// </summary>
		public async Task<ServiceResult<ApiResubscribeResult>> PostContactsResubscribeAsync(ApiContactResubscription apiContactResubscription)
		{
			var request = new Request(baseAddress, "contacts/resubscribe");
			return await PostAsync<ApiResubscribeResult, ApiContactResubscription>(request, apiContactResubscription);
		}
示例#2
0
		/// <summary>
		/// Resubscribes a previously unsubscribed contact to a given address book.
		/// </summary>
		public async Task<ServiceResult<ApiResubscribeResult>> PostAddressBookContactsResubscribeAsync(int addressBookId, ApiContactResubscription apiContactResubscription)
		{
			var request = new Request(baseAddress, "address-books/{addressBookId}/contacts/resubscribe", 
			new Dictionary<string, object>
			{
				{ "addressBookId", addressBookId },
			});
			return await PostAsync<ApiResubscribeResult, ApiContactResubscription>(request, apiContactResubscription);
		}
示例#3
0
		/// <summary>
		/// Resubscribes a previously unsubscribed contact.
		/// </summary>
		public ServiceResult<ApiResubscribeResult> PostContactsResubscribe(ApiContactResubscription apiContactResubscription)
		{
			return PostContactsResubscribeAsync(apiContactResubscription).Result;
		}
示例#4
0
		/// <summary>
		/// Resubscribes a previously unsubscribed contact to a given address book.
		/// </summary>
		public ServiceResult<ApiResubscribeResult> PostAddressBookContactsResubscribe(int addressBookId, ApiContactResubscription apiContactResubscription)
		{
			return PostAddressBookContactsResubscribeAsync(addressBookId, apiContactResubscription).Result;
		}