/// <summary> /// This request retrieves a listing of all webhooks. /// If successful, this request returns an object with a data property, which is an array that has 0 or more recording objects. /// </summary> /// <param name="limit">Set how many records will return from the server</param> /// <param name="page">Identify the starting point to return rows from a result</param> /// <returns>If successful, this request will return an object with a data, _links and pagination properties.</returns> public WebhookList ListWebhooks(int limit = 20, int page = 0) { var resource = new WebhookLists(new WebhookList { Limit = limit, Page = page }); var result = restClient.Retrieve(resource); return((WebhookList)result.Object); }
public ConversationWebhookList ListConversationWebhooks(int limit = 20, int offset = 0) { var resource = new WebhookLists(); var list = (ConversationWebhookList)resource.Object; list.Limit = limit; list.Offset = offset; restClient.Retrieve(resource); return(resource.Object as ConversationWebhookList); }