Interface IListSubscriptionCollection
A collection of list webhook subscriptions
Assembly: PnP.Core.dll
Syntax
public interface IListSubscriptionCollection : IQueryable<IListSubscription>, IQueryable, IAsyncEnumerable<IListSubscription>, IDataModelCollection<IListSubscription>, IEnumerable<IListSubscription>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IListSubscription>, IDataModelCollectionDeleteByGuidId, ISupportModules<IListSubscriptionCollection>
Methods
Adds a new webhook subscription
Declaration
IListSubscription Add(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription Add(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
int
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddAsync(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddAsync(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
int
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(Batch batch, string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
|
Batch
batch
Batch to use
|
|
string
notificationUrl
A url, where the notification request will be sent
|
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(Batch batch, string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
|
Batch
batch
Batch to use
|
|
string
notificationUrl
A url, where the notification request will be sent
|
|
int
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
int
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(Batch batch, string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
|
Batch
batch
Batch to use
|
|
string
notificationUrl
A url, where the notification request will be sent
|
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(Batch batch, string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
|
Batch
batch
Batch to use
|
|
string
notificationUrl
A url, where the notification request will be sent
|
|
int
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
|
string
notificationUrl
A url, where the notification request will be sent
|
|
int
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
|
string
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Gets webhook subscription
Declaration
IListSubscription GetById(Guid subscriptionId)
Parameters
|
Guid
subscriptionId
Subscription's Id, a Guid
|
Returns
Gets webhook subscription
Declaration
Task<IListSubscription> GetByIdAsync(Guid subscriptionId)
Parameters
|
Guid
subscriptionId
Subscription's Id, a Guid
|
Returns
Extension Methods