JSON Request

JohnLF

New Member
Hi,
Can Fabrik receive a JSON request from an external source to update a Fabrik table? If so where would you put the php methods to receive the data and what URL would you send the data to?

The sample below (Android/Java) would send data to a custom component "com_custom" calling the function "update.timeStamp", which would then do something with the received parameters.


Code:
private static String compURL = "/index.php?option=com_custom&task=update.timeStamp&format=json&tmpl=raw";
 
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair(TAG_TS, lastTime));     
String url = serverURL + compURL ;
 
JSONObject json = jsonParser.getJSONFromUrl(url, params);


Thanks
John
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top