Exemplo n.º 1
0
        /// <summary>
        ///   Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days
        ///   until the subaccount is resumed.
        ///   <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=pause">Mandrill API Documentation</see>
        /// </summary>
        /// <param name="request">The request</param>
        /// <returns>the information for the paused subaccount</returns>
        public async Task <SubaccountInfo> PauseSubaccount(PauseSubAccountRequest request)
        {
            const string path = "subaccounts/pause.json";

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

            return(resp);
        }
Exemplo n.º 2
0
    /// <summary>
    ///   Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days
    ///   until the subaccount is resumed.
    ///   <see cref="https://mandrillapp.com/api/docs/subaccounts.JSON.html#method=pause">Mandrill API Documentation</see>
    /// </summary>
    /// <param name="request">The request</param>
    /// <returns>the information for the paused subaccount</returns>
    public async Task<SubaccountInfo> PauseSubaccount(PauseSubAccountRequest request)
    {
      const string path = "subaccounts/pause.json";

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

      return resp;
    }