/// <summary> /// This API command will return the details of the target email address. /// </summary> /// <returns></returns> public async Task <ResultSubscriberGet> GetAsync(ParamSubscriberGet param) { var arry = new Dictionary <string, string> { { nameof(param.ListID), param.ListID.ToString() } }; if (param.EmailAddress.IsNotNullOrEmpty()) { arry.Add(nameof(param.EmailAddress), param.EmailAddress); } if (param.SubscriberID > 0) { arry.Add(nameof(param.SubscriberID), param.SubscriberID.ToString()); } return(await _http.Value.PostAsync <ResultSubscriberGet>(SendloopAddress.SubscriberGet, arry)); }
/// <summary> /// This API command will return the details of the target email address. /// </summary> /// <returns></returns> public ResultSubscriberGet Get(ParamSubscriberGet param) => GetAsync(param).GetAwaiter().GetResult();