Step 2: Write Apex to Send an HTTP Call to the Connected App
After you configure the remote site, write the Apex code that sends an HTTP request to the connected app to initiate the content sync. To allow the panel components to trigger the Apex methods, use the
@AuraEnabled annotation for each method.
The endpoint must match the URL entered in the Remote Site URL field.
This Apex sample includes methods for calls to Heroku and Marketing Cloud.