예제 #1
0
        /// <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);
        }
예제 #2
0
    /// <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;
    }