Exemple #1
0
 /// <summary>
 /// Creates a feed document for the feed type that you specify. This operation
 /// returns a presigned URL for uploading the feed document contents. It also
 /// returns a feedDocumentId value that you can pass in with a subsequent call
 /// to the createFeed operation.
 ///
 /// **Usage Plan:**
 ///
 /// | Rate (requests per second) | Burst |
 /// | ---- | ---- |
 /// | 0.0083 | 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 <object> CreateFeedDocumentAsync(this IFeedsClient operations, CreateFeedDocumentSpecification body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateFeedDocumentWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Creates a feed document for the feed type that you specify. This operation
 /// returns a presigned URL for uploading the feed document contents. It also
 /// returns a feedDocumentId value that you can pass in with a subsequent call
 /// to the createFeed operation.
 ///
 /// **Usage Plan:**
 ///
 /// | Rate (requests per second) | Burst |
 /// | ---- | ---- |
 /// | 0.0083 | 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 object CreateFeedDocument(this IFeedsClient operations, CreateFeedDocumentSpecification body)
 {
     return(operations.CreateFeedDocumentAsync(body).GetAwaiter().GetResult());
 }