Home
Find the answer to your question
Retrieving Client Alerts session information is not working properly. The "Login" call often fails with "Invalid ClientAlerts Auth Token" error, even though the client alerts token is valid.
Summary
Once you receive <ClientAlertsAuthToken> data in the response, it needs to be URL-encoded to escape special characters like "+", "=", space etc., before you can use it as a parameter in the "Login" request.
Step 2: URL-encode the <ClientAlertsAuthToken> retrieved in Step 1
Retrieved Token:
AQAAASf+w9gAAA0xfDE3NDY5MzY1fDUyMTM0fDEyNzIyNzQyMDUwMDJ8MDNpdHNSdXlwTTJRT2tzZFVqbDBSZFBPaVhETEVoZW84TXEyalNZbHVZY3dYMyt5Mng2djJ0K3AyRjBaQVpIVXh3SWxmS2MrY1NQVjJQeElQc0tsMmc9PVkHabaISHALa6Sv2CNP81isAKhA
Token after encoding:
AQAAASf%2Bw9gAAA0xfDE3NDY5MzY1fDUyMTM0fDEyNzIyNzQyMDUwMDJ8MDNpdHNSdXlwTTJRT2tzZFVqbDBSZFBPaVhETEVoZW84TXEyalNZbHVZY3dYMyt5Mng2djJ0K3AyRjBaQVpIVXh3SWxmS2MrY1NQVjJQeElQc0tsMmc9PVkHabaISHALa6Sv2CNP81isAKhA
Note that after URL encoding, the "+" symbol in the token is encoded as %2B
Step 3: Establish a Client Alerts session by passing in the Client Alerts token and retrieving session information
REQUEST:
http://clientalerts.ebay.com/ws/ecasvc/ClientAlerts?version=665&appid=YOUR_APP_ID_HERE&callname=Login&ClientAlertsAuthToken=AQAAASf%2Bw9gAAA0xfDE3NDY5MzY1fDUyMTM0fDEyNzIyNzQyMDUwMDJ8MDNpdHNSdXlwTTJRT2tzZFVqbDBSZFBPaVhETEVoZW84TXEyalNZbHVZY3dYMyt5Mng2djJ0K3AyRjBaQVpIVXh3SWxmS2MrY1NQVjJQeElQc0tsMmc9PVkHabaISHALa6Sv2CNP81isAKhA
Additional Resources
Client Alerts API Guide: http://developer.ebay.com/DevZone/client-alerts/docs/Concepts/ClientAlertsAPIGuide.html