I am working on connecting to Apple Ads API, after when I created SSL authentication, there is the following recommendation to check if a connection is ok:
curl -X GET \ https://api.searchads.apple.com/api/v2/campaigns \ -H 'Authorization: orgId=<OrgID>' \ -H 'Content-Type: application/json' \ --cert-type p12 \ --cert <FILENAME>.p12 \ --pass <PASSWORD>
source - https://developer.apple.com/documentation/apple_search_ads/authenticating_with_the_apple_search_ads_api.
But I don't understand how I should run it using R.
Could you please help me to understand what R code I should create to run this curl with GET request? which method should I use?