{"Status":"True","Response":" YOUR END POINT RESULT."}
Status=True : means your endpoint has been executed successfully
HTTP_GET2(Link : String,
Secured : Integer,
Headers,
CustomHeaders : String,
TimeOut : Integer);
Demo
VAR Result : String;
VAR Link : String;
Link := 'http://217.16.4.142:82/Tracking/Position/Device?NameID='+CRM_CustomerCode;
Result := HTTP_GET2(Link,0);
Exit;
Demo With Custom Headers
ArrayItemAdd('CustomHeadersArrayName', 'Authorization: key=AIzaSyAqyws');
//--GET
Result := HTTP_GET2(Link, 0 ,'application/json:UTF-8:text/text', 'CustomHeadersArrayName', 500);
{"Status":"True","Response":" YOUR END POINT RESULT."}
HTTP_POST2(Url : String,
Data : String,
Headers : String,
CustomHeaders : String,
Secured,
TimeOut : Integer);
Demo
VAR Result : String;
VAR Params : String;
VAR Link : String;
Params := 'ProdID=0&'+
'StartDateTime=&'+
'StopDateTime=&'+
'MaxRecordID=0&'+
'MinRecordID=0&'+
'Type=2';
Link := 'http://api.furthermarket.com/FM/MARKET/Sales1?MyAccountID=4481642&Password=s';
Result := HTTP_POST2(Link, Params, 'application/x-www-form-urlencoded:utf-8', '', 0); // Headers=ContentType:CharSet:Accept
Exit;
Demo With Custom Headers
ArrayItemAdd('CustomHeadersArrayName', 'Authorization: key=AIzaSyAqyws');
//--GET
Result := HTTP_GET2(Url, 0 ,'application/json:UTF-8:text/text', 'CustomHeadersArrayName', 500);
//--POST
Result := HTTP_POST2(Url, JSon, 'application/json:UTF-8:text/text', 'CustomHeadersArrayName', 1);