Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpRequest req = new HttpRequest();
- req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID());
- req.setHeader('Content-Type', 'application/json');
- req.setEndpoint('https://na11.salesforce.com/services/data/v32.0/tooling/sobjects/Profile/00eA0000000WrUv');
- req.setMethod('GET');
- Http h = new Http();
- HttpResponse res = h.send(req);
- system.debug(res.getBody());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement