예제 #1
0
 /// <summary>
 /// Sends a Ping request to webhook endpoint.
 /// Used for testing connectivity and availability of target URL
 /// </summary>
 /// <remarks>
 /// Required permissions: Webhooks.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 public static PingEventDto PingById(this IWebhooks operations, long id)
 {
     return(operations.PingByIdAsync(id).GetAwaiter().GetResult());
 }
예제 #2
0
 /// <summary>
 /// Sends a Ping request to webhook endpoint.
 /// Used for testing connectivity and availability of target URL
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Webhooks or Webhooks.Write.
 ///
 /// Required permissions: Webhooks.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 public static PingEventDto PingById(this IWebhooks operations, long key, string expand = default(string), string select = default(string))
 {
     return(operations.PingByIdAsync(key, expand, select).GetAwaiter().GetResult());
 }