我正在尝试从 Production 上的 Ebay API 接收 ItemListed 的通知。
我已经成功订阅了 Ebay 的通知,尽管我没有收到任何邮件,也没有收到任何关于我确信已经发生的操作的指定 URL 的电话。
我登录了我的开发者帐户并设置了正确的 URL 和电子邮件通知。
这是订阅的 XML 代码:
<?xml version="1.0" encoding="utf-8"?>
<SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<!-- Use the Developer portal or the <ApplicationDeliveryPreferences> container to set
the Application delivery settings -->
<RequesterCredentials>
<eBayAuthToken></eBayAuthToken>
</RequesterCredentials>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
<ApplicationDeliveryPreferences>
<!--Enter an email address-->
<AlertEmail>mailto://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9afff7fbf3f6dafff7fbf3f6b4f9f5f7" rel="noreferrer noopener nofollow">[email protected]</a></AlertEmail>
<AlertEnable>Enable</AlertEnable>
<ApplicationEnable>Enable</ApplicationEnable>
<ApplicationURL>MYHHTPSURL</ApplicationURL>
<DeviceType>Platform</DeviceType>
<DeliveryURLDetails>
<DeliveryURL>MYHTTPSURL</DeliveryURL>
<DeliveryURLName>TEST</DeliveryURLName>
<Status>Enable</Status>
</DeliveryURLDetails>
</ApplicationDeliveryPreferences> -->
<!-- Use the UserDeliveryPreferenceArray to enable to the user for various Event -->
<UserDeliveryPreferenceArray>
<NotificationEnable><EventType>ItemListed</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
</SetNotificationPreferencesRequest>
我正在使用 GetNotificationPreferences 添加一个 Pastebin 链接: https://pastebin.com/JBAnnX8d
对我来说一切似乎都很好。任何人都可以阐明一些吗?
最佳答案
可能对将来遇到此问题的人有帮助。我解决了它 通过 eBay 的 authnauth 系统对 API 进行身份验证。奇怪的解决方案,但有效。
关于ebay-api - 未收到 eBay 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52797780/