/// <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); } }
/// <summary> /// Returns the information required for retrieving a feed 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='feedDocumentId'> /// The identifier of the feed document. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetFeedDocumentAsync(this IFeedsClient operations, string feedDocumentId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetFeedDocumentWithHttpMessagesAsync(feedDocumentId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='feedId'> /// The identifier for the feed. This identifier is unique only in combination /// with a seller ID. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ErrorList> CancelFeedAsync(this IFeedsClient operations, string feedId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CancelFeedWithHttpMessagesAsync(feedId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='feedTypes'> /// 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. /// </param> /// <param name='marketplaceIds'> /// A list of marketplace identifiers used to filter feeds. The feeds returned /// will match at least one of the marketplaces that you specify. /// </param> /// <param name='pageSize'> /// The maximum number of feeds to return in a single call. /// </param> /// <param name='processingStatuses'> /// A list of processing statuses used to filter feeds. /// </param> /// <param name='createdSince'> /// 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. /// </param> /// <param name='createdUntil'> /// The latest feed creation date and time for feeds included in the response, /// in ISO 8601 format. The default is now. /// </param> /// <param name='nextToken'> /// 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. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetFeedsAsync(this IFeedsClient operations, IList <string> feedTypes = default(IList <string>), IList <string> marketplaceIds = default(IList <string>), int?pageSize = 10, IList <string> processingStatuses = default(IList <string>), System.DateTime?createdSince = default(System.DateTime?), System.DateTime?createdUntil = default(System.DateTime?), string nextToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetFeedsWithHttpMessagesAsync(feedTypes, marketplaceIds, pageSize, processingStatuses, createdSince, createdUntil, nextToken, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public ObservableFeedsClient(IGitHubClient client) { Ensure.ArgumentNotNull(client, "client"); _client = client.Activity.Feeds; }
public ObservableFeedsClient(IGitHubClient client) { Ensure.ArgumentNotNull(client, "client"); _client = client.Activity.Feeds; }
/// <summary> /// 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='feedTypes'> /// 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. /// </param> /// <param name='marketplaceIds'> /// A list of marketplace identifiers used to filter feeds. The feeds returned /// will match at least one of the marketplaces that you specify. /// </param> /// <param name='pageSize'> /// The maximum number of feeds to return in a single call. /// </param> /// <param name='processingStatuses'> /// A list of processing statuses used to filter feeds. /// </param> /// <param name='createdSince'> /// 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. /// </param> /// <param name='createdUntil'> /// The latest feed creation date and time for feeds included in the response, /// in ISO 8601 format. The default is now. /// </param> /// <param name='nextToken'> /// 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. /// </param> public static object GetFeeds(this IFeedsClient operations, IList <string> feedTypes = default(IList <string>), IList <string> marketplaceIds = default(IList <string>), int?pageSize = 10, IList <string> processingStatuses = default(IList <string>), System.DateTime?createdSince = default(System.DateTime?), System.DateTime?createdUntil = default(System.DateTime?), string nextToken = default(string)) { return(operations.GetFeedsAsync(feedTypes, marketplaceIds, pageSize, processingStatuses, createdSince, createdUntil, nextToken).GetAwaiter().GetResult()); }
/// <summary> /// Returns the information required for retrieving a feed 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='feedDocumentId'> /// The identifier of the feed document. /// </param> public static object GetFeedDocument(this IFeedsClient operations, string feedDocumentId) { return(operations.GetFeedDocumentAsync(feedDocumentId).GetAwaiter().GetResult()); }
/// <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()); }
/// <summary> /// 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='feedId'> /// The identifier for the feed. This identifier is unique only in combination /// with a seller ID. /// </param> public static ErrorList CancelFeed(this IFeedsClient operations, string feedId) { return(operations.CancelFeedAsync(feedId).GetAwaiter().GetResult()); }