Ejemplo n.º 1
0
 /// <summary>
 /// Creates a report.
 ///
 /// **Usage Plan:**
 ///
 /// | Rate (requests per second) | Burst |
 /// | ---- | ---- |
 /// | 0.0167 | 15 |
 ///
 /// For more information, see "Usage Plans and Rate Limits" in the Selling
 /// Partner API documentation.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CreateReportResponse> CreateReportAsync(this IReportsClient operations, CreateReportSpecification body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateReportWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a report.
 ///
 /// **Usage Plan:**
 ///
 /// | Rate (requests per second) | Burst |
 /// | ---- | ---- |
 /// | 0.0167 | 15 |
 ///
 /// For more information, see "Usage Plans and Rate Limits" in the Selling
 /// Partner API documentation.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </param>
 public static CreateReportResponse CreateReport(this IReportsClient operations, CreateReportSpecification body)
 {
     return(operations.CreateReportAsync(body).GetAwaiter().GetResult());
 }