ebay API setNotificationPreferences
ebay API setNotificationPreferences
我正在尝试使用 ebay Api Trading call for getNotificationPreferences. I'm finding this extremely frustrating and I am a little unnerved by the lack of examples around the web for a sample XML body to send. I have read their docs and tried to follow all eBay's own examples. Using their test tool 在我的 PHP 应用程序中设置对端点的通知其中包括:"Unrecognized element <ApplicationDeliveryPreferences>" 和无法识别的元素
真的,如果我能看到一个工作调用的例子,当一件商品售出时,它会向 url 发送通知,我肯定可以从那里得到它。我知道这不是我的用户令牌,因为我同时使用了沙盒令牌和生产令牌。请有人帮助我!
我在发送第一个 GetNotificationPreferencesRequest 之前在开发者网站帐户设置中设置了通知。转到您的帐户,单击 App-ID 旁边的通知 link。我认为您需要在此处指示您的 Web 服务器已准备就绪,然后通知才能正常工作,我不确定您是否可以通过 api 完成所有操作。之后我可以通过以下方式设置我的偏好:
<GetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<ApplicationDeliveryPreferences>
<AlertEnable>Enable</AlertEnable>
<ApplicationEnable>Enable</ApplicationEnable>
<ApplicationURL>http://YOUR-SITE.com/webhook.php</ApplicationURL>
<DeviceType>Platform</DeviceType>
</ApplicationDeliveryPreferences>
<UserDeliveryPreferenceArray>
<NotificationEnable>
<EventType>ItemSold</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
<!-- repeat UserDeliveryPreferenceArray for each notification wanted -->
</GetNotificationPreferencesRequest>
我正在尝试使用 ebay Api Trading call for getNotificationPreferences. I'm finding this extremely frustrating and I am a little unnerved by the lack of examples around the web for a sample XML body to send. I have read their docs and tried to follow all eBay's own examples. Using their test tool 在我的 PHP 应用程序中设置对端点的通知其中包括:"Unrecognized element <ApplicationDeliveryPreferences>" 和无法识别的元素
真的,如果我能看到一个工作调用的例子,当一件商品售出时,它会向 url 发送通知,我肯定可以从那里得到它。我知道这不是我的用户令牌,因为我同时使用了沙盒令牌和生产令牌。请有人帮助我!
我在发送第一个 GetNotificationPreferencesRequest 之前在开发者网站帐户设置中设置了通知。转到您的帐户,单击 App-ID 旁边的通知 link。我认为您需要在此处指示您的 Web 服务器已准备就绪,然后通知才能正常工作,我不确定您是否可以通过 api 完成所有操作。之后我可以通过以下方式设置我的偏好:
<GetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<ApplicationDeliveryPreferences>
<AlertEnable>Enable</AlertEnable>
<ApplicationEnable>Enable</ApplicationEnable>
<ApplicationURL>http://YOUR-SITE.com/webhook.php</ApplicationURL>
<DeviceType>Platform</DeviceType>
</ApplicationDeliveryPreferences>
<UserDeliveryPreferenceArray>
<NotificationEnable>
<EventType>ItemSold</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
<!-- repeat UserDeliveryPreferenceArray for each notification wanted -->
</GetNotificationPreferencesRequest>