/// <summary> /// Creates a destination resource to receive notifications. The /// createDestination API is grantless. For more information, see "Grantless /// operations" in the Selling Partner API Developer Guide. /// /// **Usage Plan:** /// /// | Rate (requests per second) | Burst | /// | ---- | ---- | /// | 1 | 5 | /// /// 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 <CreateDestinationResponse> CreateDestinationAsync(this INotificationsClient operations, CreateDestinationRequest body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateDestinationWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates a destination resource to receive notifications. The /// createDestination API is grantless. For more information, see "Grantless /// operations" in the Selling Partner API Developer Guide. /// /// **Usage Plan:** /// /// | Rate (requests per second) | Burst | /// | ---- | ---- | /// | 1 | 5 | /// /// 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 CreateDestinationResponse CreateDestination(this INotificationsClient operations, CreateDestinationRequest body) { return(operations.CreateDestinationAsync(body).GetAwaiter().GetResult()); }