I have an iframe that uploads video recordings to a server, when the recording is complete we receive back a call telling us that the video has been uploaded, I am trying to expose a notification on my visualforce page from the user once the HttpPost happens but I am at a loss how to go about this. Currently my Inbound API call is:
InboundILOS
@RestResource(urlMapping='/Widgets/*')
global with sharing class InboundILOS {
@HttpPost
global static String createILOS() {
ILOS_Intergration_Post__c w = new ILOS_Intergration_Post__c();
String requestBody = RestContext.request.requestBody.toString();
w.JSON_Response__c =requestBody;
JSON2ApexResp resp = JSON2ApexResp.parse(requestBody);
System.debug(resp.token);
w.token__c=resp.token;
w.videoURL__c=resp.videoURL;
w.embedURL__c=resp.embedURL;
w.randTag__c=resp.randTag;
w.iframe__c=resp.iframe;
insert w;
return 'Upload Complete';
}
}
How would I pass a response into a visualforce controller from this http post? Im unsure of the process on how this would work exactly