Skip to content

Instantly share code, notes, and snippets.

@mtetlow
Created April 23, 2014 15:28
Show Gist options
  • Save mtetlow/11219975 to your computer and use it in GitHub Desktop.
Save mtetlow/11219975 to your computer and use it in GitHub Desktop.
tooling api curl example
curl 'https://na3.salesforce.com/services/data/v29.0/tooling/query/?q=SELECT+isvisibleinselfservice%2C++activitydate%2C++isarchived%2C++type%2C++createdbyid%2C++bmg__dateopened__c%2C++priority%2C++description%2C++callobject%2C++isdeleted%2C++bmg__statusdescription__c%2C++recurrenceinterval%2C++systemmodstamp%2C++reminderdatetime%2C++bmg__statusupdateddate__c%2C++status%2C++bmg__type__c%2C++recurrenceenddateonly%2C++createddate%2C++ownerid%2C++recurrencetype%2C++isrecurrence%2C++whatid%2C++lastmodifiedbyid%2C++recurrencedayofmonth%2C++isclosed%2C++subject%2C++ce4sf20_001__aeguide_name__c%2C++recurrencedayofweekmask%2C++bmg__dateclicked__c%2C++bmg__messageurl__c%2C++lastmodifieddate%2C++id%2C++isreminderset%2C++bmg__isemailopened__c%2C++whoid%2C++recurrencestartdateonly%2C++calldurationinseconds%2C++accountid%2C++bmg__dateunsubscribed__c%2C++bmg__id__c%2C++bmg__clickdetails__c%2C++recurrencetimezonesidkey%2C++calltype%2C++bmg__isemailclicked__c%2C++recurrenceactivityid%2C++calldisposition%2C++bmg__isunsubscribed__c%2C++recurrencemonthofyear%2C++recurrenceinstance%2C+What.Type%2C++What.Name%2C++Who.Type%2C++Who.Name+FROM+Task+WHERE+OwnerID%3D%2700550000000wLyeAAE%27+AND+isRecurrence%3Dfalse+AND+isClosed%3Dfalse+ORDER+BY+CreatedDate+DESC+LIMIT+1000' -H 'Authorization: OAuth wat!' -H 'Accept: application/json' -H 'Referer: https://na3.salesforce.com/_ui/common/apex/debug/ApexCSIPage' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36' --compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment