question

discover.james avatar image
0 Likes"
discover.james asked

eBay GetUserAlerts response

I'm aware clientalerts.sandbox.ebay.com is currently down, but I was wondering if anyone experiences the issue below when the Client Alerts is up. This scenario is based when it is online. I've subscribed to user alerts from eBay and confirmed it has been setup by sending a request to get the user preferences. I send the request to get the SessionID & SessionData $clientAlertsAuthToken = urlencode(" "); $apicall = " http://clientalerts.sandbox.ebay.com/ws/ecasvc/ClientAlerts?version=865&appid= &callname=Login&ClientAlertsAuthToken=".$clientAlertsAuthToken; $resp = json_decode(file_get_contents($apicall), true); print_r($resp); I then send a request to get the user alerts $sessionID = urlencode(" "); $sessionData = urlencode(" "); $apicall = " http://clientalerts.sandbox.ebay.com/ws/ecasvc/ClientAlerts?callname=GetUserAlerts&sessionID=".$sessionID."&SessionData=".$sessionData; $resp = json_decode(file_get_contents($apicall), true); print_r($resp); Weirdly, I get the following response. It ack'd as Success, but provides no alerts and provides a new SessionData value. Array ( [Timestamp] => 2016-03-19T16:17:19.899Z [Ack] => Success [Build] => E865_CORE_APINOT_16729514_R1 [Version] => 865 [SessionData] => ) I'm subscribed to FixedPriceTransaction & ItemSold. I've put through a few transaction on eBay to generate the User Alert, but I get the response above. My requests matched those detailed on [ http://www.ebay.cn/developer/2010eBayDevCon/21%20eBayDevCon2010_BestPractices%20-%20Zhuowei%20Yang.pdf][1] (Page 34, 35) Any ideas? P.S. I have purposely removed the token and session information, from the code above. I will be also writing the code better, just trying to get the concept working first. [1]: http://www.ebay.cn/developer/2010eBayDevCon/21%20eBayDevCon2010_BestPractices%20-%20Zhuowei%20Yang.pdf
client alertsuser alerts
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mholbrgr avatar image
0 Likes"
mholbrgr answered
you have to pass the new session data value back with each successive GetUserAlerts call, or else it will keep passing you the same message from the same timestamp. Also, sandbox alerts generally are not working for transactions. I am also currently polling for alerts but so far have only received "Success" messages, though I enabled the notifications specifically when I SetNotificationPrefs. Any luck getting them to come through?
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amardeechauha_8 avatar image
0 Likes"
amardeechauha_8 answered
Hi, have you got this working, I am facing the same problem. Gone through the documentation many times but not getting the cause for this.. Here's my "setPreferenceNotification" request data: en_US High Enable Enable ClientAlerts 989 FixedPriceTransaction Enable ItemListed Enable ItemSold Enable and "getUserAlerts" API Response is : { "Timestamp":"2017-02-02T12:35:02.590Z", "Ack":"Success", "Build":"E957_CORE_APINOT_17895657_R1", "Version":"957", "SessionData":"AQasAAAVn8HuQAAA1TSUQ9MTUzNHxTVD0xfDF8TEFDVFY9MTQ4NjAzODkwMjU5MHxFSFdNPTE4MjM5fFRJRFg9MnxMSVVQPTE0ODYwMzg5MDE5MTd8UExIUz1bXTNXF4Ck4L7v+e34MUTrIQuXqb6G" } Please suggest..
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.