Advertisement
Guest User

Tim

a guest
Aug 30th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. public with sharing class vccPause_Ctrl {
  2.  
  3.     public String EndpointWithParam = 'https://vcc-eu3.8x8.com/AGUI/controlRecording.php?action=pause&token=03de433e705addd6aac250a7ecefe422';
  4.     Public String Method = 'POST';
  5.     public Map<String, String> Headers = new Map<String, String>();
  6.        
  7.     public vccPause_Ctrl() {
  8.        
  9.         Headers.put ('Authorization', 'bearer 03de433e705addd6aac250a7ecefe422');
  10.        
  11.         HttpResponse res = CalloutUtil.doCallout(EndpointWithParam, Method, null, Headers);
  12.         System.debug(res.getBody());
  13.  
  14.     }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement