Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public static string username='admin';
  2.  
  3. public static string password='N3xxxxxxxxx';
  4.  
  5. @HttpPost
  6.  
  7. global static void postItems()
  8. {
  9. Http http = new Http();
  10. HttpRequest req = new HttpRequest();
  11. req.setEndpoint('https://xxxx.nexenta.com/rest/api/2/search?jql='+
  12. 'issuekey=' + jirakey +
  13. '&os_username=' + username +
  14. '&os_password=' + password +
  15. '&expand=' + change );
  16. req.setMethod('GET');
  17. HttpResponse res = http.send(req);
  18. System.debug('JSON Response: ' + res.getBody());
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement