Exemple #1
0
        /// <summary>
        ///   Given the ID of an existing subaccount, asynchronously return the data about it
        ///   <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=info">Mandrill API Documentation</see>
        /// </summary>
        /// <param name="request">The request</param>
        /// <returns>the information about the subaccount</returns>
        public async Task <SubaccountInfo> SubaccountInfo(SubAccountInfoRequest request)
        {
            const string path = "subaccounts/info.json";

            SubaccountInfo response = await Post <SubaccountInfo>(path, request).ConfigureAwait(false);

            return(response);
        }
    /// <summary>
    ///   Given the ID of an existing subaccount, asynchronously return the data about it
    ///   <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=info">Mandrill API Documentation</see>
    /// </summary>
    /// <param name="request">The request</param>
    /// <returns>the information about the subaccount</returns>
    public async Task<SubaccountInfo> SubaccountInfo(SubAccountInfoRequest request)
    {
      const string path = "subaccounts/info.json";

      SubaccountInfo response = await Post<SubaccountInfo>(path, request);

      return response;
    }