GetSendQuota() public method

Returns the user's current sending limits.

This action is throttled at one request per second.

public GetSendQuota ( ) : GetSendQuotaResponse
return GetSendQuotaResponse
コード例 #1
0
        /// <summary>
        /// Retrieves send statistics from SES
        /// </summary>
        /// <returns></returns>
        public GetSendQuotaResult getQuota()
        {

            GetSendQuotaResult ret = null;
            using (AmazonSimpleEmailServiceClient client = new AmazonSimpleEmailServiceClient(_accessKeyID, _secretAccessKeyID))
            {

                GetSendQuotaRequest request = new GetSendQuotaRequest();
                GetSendQuotaResponse response = client.GetSendQuota(request);
                ret = response.GetSendQuotaResult;
            }

            return ret;

        }
コード例 #2
0
ファイル: SESSamples.cs プロジェクト: rajdotnet/aws-sdk-net
    public static void SESGetSendQuota()
    {
      #region SESGetSendQuota
      var sesClient = new AmazonSimpleEmailServiceClient();
      var response = sesClient.GetSendQuota();

      Console.WriteLine("Maximum emails that can be sent each 24 hours: " +
        response.Max24HourSend);
      Console.WriteLine("Maximum emails that can be sent per second: " +
        response.MaxSendRate);
      Console.WriteLine("Number of emails sent in last 24 hours: " + 
        response.SentLast24Hours);
      #endregion

      Console.ReadLine();
    }