Skip to content

Instantly share code, notes, and snippets.

@codefriar
Created March 4, 2017 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codefriar/ca6dc12d093ec1cd9ca42191f55a9ac0 to your computer and use it in GitHub Desktop.
Save codefriar/ca6dc12d093ec1cd9ca42191f55a9ac0 to your computer and use it in GitHub Desktop.
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:codefriar/bestBlogPostEver');
req.setMethod('GET');
Http http = new Http();
HTTPResponse res = http.send(req);
System.debug(res.getBody());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment