function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ali Khalil 8Ali Khalil 8 

Can we get the ClickEvent data based on access token?

If I get access token for a client by Web OAuth-2, is it possible to get ClickEvent, OpenEvent data of client from Python SDK? As there is no direct SOAP API for this.
But I checked these objects required ClientID, which we don't have.
VinayVinay (Salesforce Developers) 
Hi Ali,

As you are already aware these objects require clientID,  You need to use middleware tools  (Informatica ,Dell Bhoomi, Cast Iron, etc) which are compatible.

https://developer.salesforce.com/docs/atlas.en-us.integration_patterns_and_practices.meta/integration_patterns_and_practices/integ_pat_middleware_definitions.htm
https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/openevent.htm
https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/clickevent.htm

Thanks,
Vinay Kumar
Ali Khalil 8Ali Khalil 8
Thanks Vinay, I am not sure, as much I have studied the salesforce documentation, I could not find the endpoints(URLs) associated with SOAP apis. Am I right? How to call SOAP Apis? Can we do it without using programming language SDK? Ali Khalil Backend Developer, XiQ Inc.
VinayVinay (Salesforce Developers) 
Hi Ali,

You need to do programming implementation in salesforce to make an API call.

SOAP API
========
1)Supports data in the form of XML only.
2)Requires WSDL for the integration.
)Use SOAP API in any language that supports Web services.

References:
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_intro.htm
https://trailhead.salesforce.com/en/content/learn/modules/api_basics/api_basics_soap
https://www.sfdcstop.com/2020/01/salesforce-integration-tutorial-part-10.html


REST API
========
1)Supports both XML and JSON format.
2)Preferred for mobile and web apps since JSON being Lighter the app runs smoother and faster.

References:
https://trailhead.salesforce.com/en/content/learn/modules/api_basics/api_basics_rest
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart.htm
https://www.jitendrazaa.com/blog/salesforce/call-salesforce-rest-api-from-apex/

https://www.forcetalks.com/blog/when-to-use-rest-when-to-use-soap/

Based on your business use case you need to use either SOAP or REST API.

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar