/// <summary> /// Get the list of subaccounts defined for the account, optionally filtered by a prefix. /// <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=list">Mandrill API Documentation</see> /// </summary> /// <param name="request">The request.</param> /// <returns>the subaccounts for the account, up to a maximum of 1,000</returns> public async Task <List <SubaccountInfo> > ListSubaccounts(ListSubAccountsRequest request) { const string path = "subaccounts/list.json"; List <SubaccountInfo> resp = await Post <List <SubaccountInfo> >(path, request).ConfigureAwait(false); return(resp); }
/// <summary> /// Get the list of subaccounts defined for the account, optionally filtered by a prefix. /// <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=list">Mandrill API Documentation</see> /// </summary> /// <param name="request">The request.</param> /// <returns>the subaccounts for the account, up to a maximum of 1,000</returns> public async Task<List<SubaccountInfo>> ListSubaccounts(ListSubAccountsRequest request) { const string path = "subaccounts/list.json"; List<SubaccountInfo> resp = await Post<List<SubaccountInfo>>(path, request); return resp; }