检索处于所提供状态的事件通知列表。
状态= {状态}
通知的期望状态。必需的。目前支持失败的.
例子:https://www.concursolutions.com/api/platform/notifications/v1.0/notification?status={地位}
为有效的SAP Concur用户提供带有OAuth令牌的授权头。必需的。
在SAP Concur中,OAuth使用者必须具有以下用户角色之一:公司管理员或专业的Web服务管理员,或标准的管理员。
应用程序/ xml
得到https://www.concursolutions.com/api/platform/notifications/v1.0/notification?status=FAILEDHTTP/1.1授权:OAuth{访问令牌}接受:应用程序/ xml
这个请求将返回一个NotificationsList带有通知子元素。的通知元素将具有失败子元素,如果通知失败。
元素 | 描述 |
---|---|
上下文 | 消息,该消息可用于为该callout提供开发人员一些上下文。 |
EventDateTime | 当事件发生时。格式:YYYY-MM-DD: HH: MM: SS |
EventType | 触发调用的事件。 |
NotificationURL | 开发人员删除失败通知时调用的URL。 |
ObjectType | 触发通知的对象类型。 |
ObjectURI | 对象的URI。开发人员可以为对象类型使用适当的GET函数。 |
HTTP/1.1200好吧内容长度:626内容类型:应用程序/ xml<?xml version = " 1.0 " encoding = " utf - 8 " ?>< NotificationListxmlns =“http://www.concursolutions.com/api/notification/2012/06”xmlns:我=“http://www.w3.org/2001/XMLSchema-instance”><通知><上下文我:nil =“真正的”/>< EventDateTime >2012 - 11 - 14 - t19:45:25< / EventDateTime >< EventType >报告输入费用报告工作流步骤-报告提交< / EventType >< NotificationURI >https://www.concursolutions.com/api/platform/notifications/v1.0/notification/nOB1KNTDSWUcJPMV6dPDjNc scu6EDbt9s美元< / NotificationURI >< ObjectType >EXPRPT< / ObjectType >< ObjectURI >https://www.concursolutions.com/api/expense/expensereport/v1.1/reportfulldetails/nxxKgLlnROzz sHcpnRHQ pALxamClaFfdC美元< / ObjectURI >< / >的通知< / NotificationList >
HTTP/1.1200好吧内容长度:388内容类型:application / json;utf - 8字符集=[{“背景”:零,“EventDateTime”:“2012 - 11 - 14 - t19:45:25”,“EventType”:“报告输入费用报告工作流程-报告提交”,“NotificationURI”:“https://www.concursolutions.com/api/platform/notifications/v1.0/notification/nOB1KNTDSWUcJPMV6dPDjNc scu6EDbt9s美元”,“ObjectType”:“EXPRPT”,“ObjectURI”:“https://www.concursolutions.com/api/expense/expensereport/v1.1/reportfulldetails/nxxKgLlnROzz sHcpnRHQ pALxamClaFfdC美元”}]