Webhook
配置Webhooks类型的集成配置文件的概述和说明。
- 通用系统管理员
webhook为用户定义的HTTP回叫,通常由一些事件触发且包含事件结果和状态的信息。
Alma可以在以下情况发生时发送webhook。
- 作业运行结束(使用Alma界面或API)。
- 用户更新。
- 发送以下通知:
- 取消请求信件
- 借阅活动信件
- 外借状态通知
- 预约在架信件
- 创建、关闭或放于预约书架的预约、预订、移动、数字化或工单请求。
- 创建、归还或声明丢失的外借。
- A bibliographic record is changed.
- 更改的纸本单册。
- An item from a continuous PO line was received.
For a complete list of events that trigger webhooks, see Supported Events in the Developer Network.
要启用webhook,Alma必须配置webhook集成配置文件(见下文)。
For webhooks that use notifications, as part of the integration profile creation, activate the desired webhooks in the Letter Activity code table.However, once the integration profile is created, you can activate additional webhooks or deactivate webhooks from the Letters Configuration table.
For detailed information on these webhooks, see Developer Network.
Configuring a Webhooks Integration Profile
- On the Integration Profile List page (Configuration Menu > General > External Systems > Integration Profiles), select Add Integration Profile.打开集成配置文件向导的第一页。
- From the Integration type drop-down list, select Webhooks and enter a code and name for the profile.
- Select Next.打开向导的第二页
Webhook Configuration - Select Activate to activate the webhooks integration profile.Until the profile is activated, the status reads Pending activation.
- Enter the listener URL for the Webhook Listener URL and secret code in Secret.For information on the values to be entered here, see the Security section in Webhooks.
- Select whether the message type should be XML or a JSON.
- Under Subscriptions:
- Select Job finish to send a webhook when a job run has finished running (using either the Alma UI or an API).
- Select Notifications to send a webhook when one of the notifications listed above is sent.Select Configure Notification Types to open the Letter Activity code table, and scroll to the very bottom to activate the webhooks for these notifications.The webhooks that were previously activated (either here or in the Letters Configuration table) show as activated; and the webhooks you activate here are displayed as activated in the Letters Configuration table.Select Save when you have activated the desired notifications to go back to the integration profile.

- Select Users to send a webhook when user information is updated.这包括所有用户更改。请注意,使用API执行的用户更改不会触发发送webhook。在用户组框中,选择触发发送webhook的用户组。If no user groups are specified, a webhook is sent for all user groups.
- Select Requests to send a webhook when a hold, booking, move, digitization, or work order request is created, closed, or placed on the hold shelf.
- Select Loans to send a webhook when a loan is created, returned, or declared lost.
- Select BIB records to send a webhook when a bibliographic record is changed.
- Select Physical items to send a webhook when a physical item is changed.
- Select Receive - continuous PO line to send a webhook when a continuous PO line is received.
- Select Resource sharing lending requests to send a webhook for lending resource sharing requests.
- Select Save.您配置的文件会出现在集成配置文件列表中
-
在集成配置文件定义后,您可以从集成配置文件操作列表选择查看日志。该选项使您可以查看webhook事件的日志。可以检索URL和荷载元素。您可以显示每个webhook请求的请求正文(显示内容在4000个字符后被截断,但完整的请求正文将发送到收听者)。
- 如果webhook尝试失败,会向在webhook配置文件的联系信息选项卡中设置的电子邮件地址发送电子邮件。
- In Premium Sandbox environments, the Webhook Listener URL is removed and the profiles are set to inactive.这是因为沙盒环境中的webhook操作也会对生产数据相关的服务器造成影响,这会将测试数据和生产数据混淆。如果想要启用沙盒环境中的集成配置文件,按照上文的步骤4、5进行。
Page tags: article:topic product:alma content:Documentation lang:english webhooks FulCancelRequestLetter FulUserBorrowingActivityLetter FulItemChangeDueDateLetter FulPlaceOnHoldShelfLetter