示例#1
0
 /// <summary>
 /// Gets a count of all of the shop's webhooks.
 /// </summary>
 /// <param name="filter">Options for filtering the result.</param>
 /// <param name="cancellationToken">Cancellation Token</param>
 /// <returns>The count of all webhooks for the shop.</returns>
 public virtual async Task <int> CountAsync(WebhookCountFilter filter = null, CancellationToken cancellationToken = default)
 {
     return(await ExecuteGetAsync <int>("webhooks/count.json", "count", filter, cancellationToken));
 }
示例#2
0
 /// <summary>
 /// Gets a count of all of the shop's webhooks.
 /// </summary>
 /// <param name="filter">Options for filtering the result.</param>
 /// <returns>The count of all webhooks for the shop.</returns>
 public virtual async Task <int> CountAsync(WebhookCountFilter filter = null)
 {
     return(await ExecuteGetAsync <int>("webhooks/count.json", "count", filter));
 }