global class MyScheduler implements Schedulable{ global void execute(SchedulableContext SC){ CallOut.doCallout(); } }
public class CallOut{ @future(callout=true) public static void doCallout(){ HttpRequest req = new HttpRequest(); HttpResponse res = new HttpResponse(); Http http = new Http(); req.setEndpoint(endPoint); req.setMethod('POST'); req.setCompressed(false); req.setBody(''); req.setHeader('Content-Type', 'application/x-www-form-urlencoded'); res = http.send(req); // do something with res. } }