Ejemplo n.º 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);
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 3
0
		/// <summary>
		/// Resubscribes a previously unsubscribed contact.
		/// </summary>
		public ServiceResult<ApiResubscribeResult> PostContactsResubscribe(ApiContactResubscription apiContactResubscription)
		{
			return PostContactsResubscribeAsync(apiContactResubscription).Result;
		}
Ejemplo n.º 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;
		}