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