/*
* Selling Partner API for Feeds
*
* The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
*
* OpenAPI spec version: 2020-09-04
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using FikaAmazonAPI.AmazonSpApiSDK.Clients;
using FikaAmazonAPI.AmazonSpApiSDK.Models.Feeds;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace FikaAmazonAPI.AmazonSpApiSDK.Api.Feeds
{
///
/// Represents a collection of functions to interact with the API endpoints
///
public interface IFeedsApi : IApiAccessor
{
#region Synchronous Operations
///
///
///
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// CancelFeedResponse
CancelFeedResponse CancelFeed(string feedId);
///
///
///
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// ApiResponse of CancelFeedResponse
ApiResponse CancelFeedWithHttpInfo(string feedId);
///
///
///
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// CreateFeedResponse
CreateFeedResponse CreateFeed(CreateFeedSpecification body);
///
///
///
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// ApiResponse of CreateFeedResponse
ApiResponse CreateFeedWithHttpInfo(CreateFeedSpecification body);
///
///
///
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// CreateFeedDocumentResponse
CreateFeedDocumentResponse CreateFeedDocument(CreateFeedDocumentSpecification body);
///
///
///
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// ApiResponse of CreateFeedDocumentResponse
ApiResponse CreateFeedDocumentWithHttpInfo(CreateFeedDocumentSpecification body);
///
///
///
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// GetFeedResponse
GetFeedResponse GetFeed(string feedId);
///
///
///
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// ApiResponse of GetFeedResponse
ApiResponse GetFeedWithHttpInfo(string feedId);
///
///
///
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// GetFeedDocumentResponse
GetFeedDocumentResponse GetFeedDocument(string feedDocumentId);
///
///
///
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// ApiResponse of GetFeedDocumentResponse
ApiResponse GetFeedDocumentWithHttpInfo(string feedDocumentId);
///
///
///
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// GetFeedsResponse
GetFeedsResponse GetFeeds(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null);
///
///
///
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// ApiResponse of GetFeedsResponse
ApiResponse GetFeedsWithHttpInfo(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null);
#endregion Synchronous Operations
#region Asynchronous Operations
///
///
///
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of CancelFeedResponse
System.Threading.Tasks.Task CancelFeedAsync(string feedId);
///
///
///
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of ApiResponse (CancelFeedResponse)
System.Threading.Tasks.Task> CancelFeedAsyncWithHttpInfo(string feedId);
///
///
///
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// Task of CreateFeedResponse
System.Threading.Tasks.Task CreateFeedAsync(CreateFeedSpecification body);
///
///
///
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CreateFeedResponse)
System.Threading.Tasks.Task> CreateFeedAsyncWithHttpInfo(CreateFeedSpecification body);
///
///
///
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// Task of CreateFeedDocumentResponse
System.Threading.Tasks.Task CreateFeedDocumentAsync(CreateFeedDocumentSpecification body);
///
///
///
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CreateFeedDocumentResponse)
System.Threading.Tasks.Task> CreateFeedDocumentAsyncWithHttpInfo(CreateFeedDocumentSpecification body);
///
///
///
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of GetFeedResponse
System.Threading.Tasks.Task GetFeedAsync(string feedId);
///
///
///
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of ApiResponse (GetFeedResponse)
System.Threading.Tasks.Task> GetFeedAsyncWithHttpInfo(string feedId);
///
///
///
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// Task of GetFeedDocumentResponse
System.Threading.Tasks.Task GetFeedDocumentAsync(string feedDocumentId);
///
///
///
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// Task of ApiResponse (GetFeedDocumentResponse)
System.Threading.Tasks.Task> GetFeedDocumentAsyncWithHttpInfo(string feedDocumentId);
///
///
///
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// Task of GetFeedsResponse
System.Threading.Tasks.Task GetFeedsAsync(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null);
///
///
///
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// Task of ApiResponse (GetFeedsResponse)
System.Threading.Tasks.Task> GetFeedsAsyncWithHttpInfo(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null);
#endregion Asynchronous Operations
}
///
/// Represents a collection of functions to interact with the API endpoints
///
public partial class FeedsApi : IFeedsApi
{
private ExceptionFactory _exceptionFactory = (name, response) => null;
///
/// Initializes a new instance of the class.
///
///
public FeedsApi(string basePath)
{
Configuration = new Configuration { BasePath = basePath };
ExceptionFactory = Configuration.DefaultExceptionFactory;
}
///
/// Initializes a new instance of the class
/// using Configuration object
///
/// An instance of Configuration
///
public FeedsApi(Configuration configuration = null)
{
if (configuration == null) // use the default one in Configuration
Configuration = Configuration.Default;
else
Configuration = configuration;
ExceptionFactory = Configuration.DefaultExceptionFactory;
}
///
/// Gets the base path of the API client.
///
/// The base path
public string GetBasePath()
{
return Configuration.ApiClient.RestClient.BaseUrl.ToString();
}
///
/// Sets the base path of the API client.
///
/// The base path
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
public void SetBasePath(string basePath)
{
// do nothing
}
///
/// Gets or sets the configuration object
///
/// An instance of the Configuration
public Configuration Configuration { get; set; }
///
/// Provides a factory method hook for the creation of exceptions.
///
public ExceptionFactory ExceptionFactory
{
get
{
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
{
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
}
return _exceptionFactory;
}
set { _exceptionFactory = value; }
}
///
/// Gets the default header.
///
/// Dictionary of HTTP header
[Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
public IDictionary DefaultHeader()
{
return new ReadOnlyDictionary(Configuration.DefaultHeader);
}
///
/// Add default header.
///
/// Header field name.
/// Header field value.
///
[Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
public void AddDefaultHeader(string key, string value)
{
Configuration.AddDefaultHeader(key, value);
}
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// CancelFeedResponse
public CancelFeedResponse CancelFeed(string feedId)
{
ApiResponse localVarResponse = CancelFeedWithHttpInfo(feedId);
return localVarResponse.Data;
}
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// ApiResponse of CancelFeedResponse
public ApiResponse CancelFeedWithHttpInfo(string feedId)
{
// verify the required parameter 'feedId' is set
if (feedId == null)
throw new ApiException(400, "Missing required parameter 'feedId' when calling FeedsApi->CancelFeed");
var localVarPath = "/feeds/2020-09-04/feeds/{feedId}";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedId != null) localVarPathParams.Add("feedId", Configuration.ApiClient.ParameterToString(feedId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CancelFeed", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(CancelFeedResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(CancelFeedResponse)));
}
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of CancelFeedResponse
public async System.Threading.Tasks.Task CancelFeedAsync(string feedId)
{
ApiResponse localVarResponse = await CancelFeedAsyncWithHttpInfo(feedId);
return localVarResponse.Data;
}
///
/// Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed and getFeeds operations. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of ApiResponse (CancelFeedResponse)
public async System.Threading.Tasks.Task> CancelFeedAsyncWithHttpInfo(string feedId)
{
// verify the required parameter 'feedId' is set
if (feedId == null)
throw new ApiException(400, "Missing required parameter 'feedId' when calling FeedsApi->CancelFeed");
var localVarPath = "/feeds/2020-09-04/feeds/{feedId}";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedId != null) localVarPathParams.Add("feedId", Configuration.ApiClient.ParameterToString(feedId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CancelFeed", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(CancelFeedResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(CancelFeedResponse)));
}
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// CreateFeedResponse
public CreateFeedResponse CreateFeed(CreateFeedSpecification body)
{
ApiResponse localVarResponse = CreateFeedWithHttpInfo(body);
return localVarResponse.Data;
}
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// ApiResponse of CreateFeedResponse
public ApiResponse CreateFeedWithHttpInfo(CreateFeedSpecification body)
{
// verify the required parameter 'body' is set
if (body == null)
throw new ApiException(400, "Missing required parameter 'body' when calling FeedsApi->CreateFeed");
var localVarPath = "/feeds/2020-09-04/feeds";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CreateFeed", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(CreateFeedResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(CreateFeedResponse)));
}
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// Task of CreateFeedResponse
public async System.Threading.Tasks.Task CreateFeedAsync(CreateFeedSpecification body)
{
ApiResponse localVarResponse = await CreateFeedAsyncWithHttpInfo(body);
return localVarResponse.Data;
}
///
/// Creates a feed. Encrypt and upload the contents of the feed document before calling this 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.
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CreateFeedResponse)
public async System.Threading.Tasks.Task> CreateFeedAsyncWithHttpInfo(CreateFeedSpecification body)
{
// verify the required parameter 'body' is set
if (body == null)
throw new ApiException(400, "Missing required parameter 'body' when calling FeedsApi->CreateFeed");
var localVarPath = "/feeds/2020-09-04/feeds";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CreateFeed", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(CreateFeedResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(CreateFeedResponse)));
}
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// CreateFeedDocumentResponse
public CreateFeedDocumentResponse CreateFeedDocument(CreateFeedDocumentSpecification body)
{
ApiResponse localVarResponse = CreateFeedDocumentWithHttpInfo(body);
return localVarResponse.Data;
}
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// ApiResponse of CreateFeedDocumentResponse
public ApiResponse CreateFeedDocumentWithHttpInfo(CreateFeedDocumentSpecification body)
{
// verify the required parameter 'body' is set
if (body == null)
throw new ApiException(400, "Missing required parameter 'body' when calling FeedsApi->CreateFeedDocument");
var localVarPath = "/feeds/2020-09-04/documents";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CreateFeedDocument", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(CreateFeedDocumentResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(CreateFeedDocumentResponse)));
}
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// Task of CreateFeedDocumentResponse
public async System.Threading.Tasks.Task CreateFeedDocumentAsync(CreateFeedDocumentSpecification body)
{
ApiResponse localVarResponse = await CreateFeedDocumentAsyncWithHttpInfo(body);
return localVarResponse.Data;
}
///
/// Creates a feed document for the feed type that you specify. This operation returns encryption details for encrypting the contents of the document, as well as a presigned URL for uploading the encrypted 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.
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CreateFeedDocumentResponse)
public async System.Threading.Tasks.Task> CreateFeedDocumentAsyncWithHttpInfo(CreateFeedDocumentSpecification body)
{
// verify the required parameter 'body' is set
if (body == null)
throw new ApiException(400, "Missing required parameter 'body' when calling FeedsApi->CreateFeedDocument");
var localVarPath = "/feeds/2020-09-04/documents";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CreateFeedDocument", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(CreateFeedDocumentResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(CreateFeedDocumentResponse)));
}
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// GetFeedResponse
public GetFeedResponse GetFeed(string feedId)
{
ApiResponse localVarResponse = GetFeedWithHttpInfo(feedId);
return localVarResponse.Data;
}
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// ApiResponse of GetFeedResponse
public ApiResponse GetFeedWithHttpInfo(string feedId)
{
// verify the required parameter 'feedId' is set
if (feedId == null)
throw new ApiException(400, "Missing required parameter 'feedId' when calling FeedsApi->GetFeed");
var localVarPath = "/feeds/2020-09-04/feeds/{feedId}";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedId != null) localVarPathParams.Add("feedId", Configuration.ApiClient.ParameterToString(feedId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("GetFeed", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(GetFeedResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetFeedResponse)));
}
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of GetFeedResponse
public async System.Threading.Tasks.Task GetFeedAsync(string feedId)
{
ApiResponse localVarResponse = await GetFeedAsyncWithHttpInfo(feedId);
return localVarResponse.Data;
}
///
/// Returns feed details (including the resultDocumentId, if available) for the feed that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 2.0 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier for the feed. This identifier is unique only in combination with a seller ID.
/// Task of ApiResponse (GetFeedResponse)
public async System.Threading.Tasks.Task> GetFeedAsyncWithHttpInfo(string feedId)
{
// verify the required parameter 'feedId' is set
if (feedId == null)
throw new ApiException(400, "Missing required parameter 'feedId' when calling FeedsApi->GetFeed");
var localVarPath = "/feeds/2020-09-04/feeds/{feedId}";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedId != null) localVarPathParams.Add("feedId", Configuration.ApiClient.ParameterToString(feedId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("GetFeed", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(GetFeedResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetFeedResponse)));
}
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// GetFeedDocumentResponse
public GetFeedDocumentResponse GetFeedDocument(string feedDocumentId)
{
ApiResponse localVarResponse = GetFeedDocumentWithHttpInfo(feedDocumentId);
return localVarResponse.Data;
}
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// ApiResponse of GetFeedDocumentResponse
public ApiResponse GetFeedDocumentWithHttpInfo(string feedDocumentId)
{
// verify the required parameter 'feedDocumentId' is set
if (feedDocumentId == null)
throw new ApiException(400, "Missing required parameter 'feedDocumentId' when calling FeedsApi->GetFeedDocument");
var localVarPath = "/feeds/2020-09-04/documents/{feedDocumentId}";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedDocumentId != null) localVarPathParams.Add("feedDocumentId", Configuration.ApiClient.ParameterToString(feedDocumentId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("GetFeedDocument", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(GetFeedDocumentResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetFeedDocumentResponse)));
}
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// Task of GetFeedDocumentResponse
public async System.Threading.Tasks.Task GetFeedDocumentAsync(string feedDocumentId)
{
ApiResponse localVarResponse = await GetFeedDocumentAsyncWithHttpInfo(feedDocumentId);
return localVarResponse.Data;
}
///
/// Returns the information required for retrieving a feed document's contents. This includes a presigned URL for the feed document as well as the information required to decrypt the document's contents. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// The identifier of the feed document.
/// Task of ApiResponse (GetFeedDocumentResponse)
public async System.Threading.Tasks.Task> GetFeedDocumentAsyncWithHttpInfo(string feedDocumentId)
{
// verify the required parameter 'feedDocumentId' is set
if (feedDocumentId == null)
throw new ApiException(400, "Missing required parameter 'feedDocumentId' when calling FeedsApi->GetFeedDocument");
var localVarPath = "/feeds/2020-09-04/documents/{feedDocumentId}";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedDocumentId != null) localVarPathParams.Add("feedDocumentId", Configuration.ApiClient.ParameterToString(feedDocumentId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("GetFeedDocument", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(GetFeedDocumentResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetFeedDocumentResponse)));
}
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// GetFeedsResponse
public GetFeedsResponse GetFeeds(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null)
{
ApiResponse localVarResponse = GetFeedsWithHttpInfo(feedTypes, marketplaceIds, pageSize, processingStatuses, createdSince, createdUntil, nextToken);
return localVarResponse.Data;
}
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// ApiResponse of GetFeedsResponse
public ApiResponse GetFeedsWithHttpInfo(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null)
{
var localVarPath = "/feeds/2020-09-04/feeds";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedTypes != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "feedTypes", feedTypes)); // query parameter
if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter
if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter
if (processingStatuses != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "processingStatuses", processingStatuses)); // query parameter
if (createdSince != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "createdSince", createdSince)); // query parameter
if (createdUntil != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "createdUntil", createdUntil)); // query parameter
if (nextToken != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "nextToken", nextToken)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("GetFeeds", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(GetFeedsResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetFeedsResponse)));
}
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// Task of GetFeedsResponse
public async System.Threading.Tasks.Task GetFeedsAsync(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null)
{
ApiResponse localVarResponse = await GetFeedsAsyncWithHttpInfo(feedTypes, marketplaceIds, pageSize, processingStatuses, createdSince, createdUntil, nextToken);
return localVarResponse.Data;
}
///
/// Returns feed details for the feeds that match the filters that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | - -- - | - -- - | | 0.0222 | 10 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
///
/// Thrown when fails to make API call
/// A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional)
/// A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional)
/// The maximum number of feeds to return in a single call. (optional, default to 10)
/// A list of processing statuses used to filter feeds. (optional)
/// The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional)
/// The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional)
/// A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional)
/// Task of ApiResponse (GetFeedsResponse)
public async System.Threading.Tasks.Task> GetFeedsAsyncWithHttpInfo(List feedTypes = null, List marketplaceIds = null, int? pageSize = null, List processingStatuses = null, DateTime? createdSince = null, DateTime? createdUntil = null, string nextToken = null)
{
var localVarPath = "/feeds/2020-09-04/feeds";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
object localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/json"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/json"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (feedTypes != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "feedTypes", feedTypes)); // query parameter
if (marketplaceIds != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "marketplaceIds", marketplaceIds)); // query parameter
if (pageSize != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter
if (processingStatuses != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("csv", "processingStatuses", processingStatuses)); // query parameter
if (createdSince != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "createdSince", createdSince)); // query parameter
if (createdUntil != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "createdUntil", createdUntil)); // query parameter
if (nextToken != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "nextToken", nextToken)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int)localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("GetFeeds", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(GetFeedsResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(GetFeedsResponse)));
}
}
}