Created
September 13, 2014 13:40
-
-
Save tzmfreedom/6fd3ca8dbfb7b41ab00f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim objXmlHttp As Object | |
Set objXmlHttp = createObject("MSXML2.XMLHTTP") | |
objXmlHttp.Open "GET", "https://***.salesforce.com/services/data/v30.0/query/?q=SELECT id FROM Account") | |
Call objXmlHttp.setRequestHeader("Content-Type", "application/json") | |
Call objXmlHttp.setRequestHeader("Authorization", "Bearer " + sessionId) | |
Call objXmlHttp.setRequestHeader("Accept", "application/xml") | |
objXmlHttp.send | |
CallRestApi = objXmlHttp.responseText |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment