Exemple #1
0
 /// <summary>
 /// Delete a webhook subscription
 /// </summary>
 /// <remarks>
 /// Required permissions: Webhooks.Delete.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='ifMatch'>
 /// If-Match header
 /// </param>
 public static void DeleteById(this IWebhooks operations, long id, string ifMatch = default(string))
 {
     operations.DeleteByIdAsync(id, ifMatch).GetAwaiter().GetResult();
 }
Exemple #2
0
 /// <summary>
 /// Delete a webhook subscription
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Webhooks or Webhooks.Write.
 ///
 /// Required permissions: Webhooks.Delete.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 public static void DeleteById(this IWebhooks operations, long key)
 {
     operations.DeleteByIdAsync(key).GetAwaiter().GetResult();
 }