- Topics: Active | Unanswered
#1 2017-08-24 06:43:16
- Mohantesh
Retrieve 'report my event' action response at Salesforce by usingREST
Hi,
I had written REST API at Salesforce to call Adobe Connect request.
As per Adobe document: -
1. First Method I called 'Common-info' request to retrieve cookie value
https://emdmillipore.adobeconnect.com/api/xml?action=common-info.
Based on above URL , I am getting cookie response from Adobe
2. Second Method I called 'Login' with username details
http://emdmillipore.adobeconnect.com/api/xml?action=login&login=xxxx&password=xxxx
Displaying 'Ok' response from Adobe system.
3. Third Method, when I called 'report my event' action
https://emdmillipore.adobeconnect.com/api/xml?action=report-my-events
By setting request.setHeader Authorization as 'Login details with dynamic cookie value'. Got response from Adobe
'<?xml version="1.0" encoding="utf-8"?>
<results><status code="no-access" subcode="no-login"/></results>'
I am unable to call further Adobe actions after login method.
Comments and Suggestion, help us in this regard.
Offline
#2 2017-09-01 07:28:34
- Bruno Gasparetto
Re: Retrieve 'report my event' action response at Salesforce by usingREST
After get the cookie with Common-Info you need send the session in future api calls.
Example:
https://emdmillipore.adobeconnect.com/api/xml?action=login&login=xxxx&password=xxxx&session=cookie_string
https://emdmillipore.adobeconnect.com/api/xml?action=report-my-events&session=cookie_string
Documentation: https://helpx.adobe.com/adobe-connect/webservices/login-sessions-user-handle-requests.html
In my PHP Library I prefer call the login action and get the cookie from the header response instead of common-info action.
Last edited by Bruno Gasparetto (2017-09-01 07:42:52)
Offline