Does anyone know of a good tutorial for any of the above?
I need to send data to Drupal from and Android phone.
Data is stored in XML but can be converted to JSON easily.
Then it needs to be stored in a user's profile.
thanks
Does anyone know of a good tutorial for any of the above?
I need to send data to Drupal from and Android phone.
Data is stored in XML but can be converted to JSON easily.
Then it needs to be stored in a user's profile.
thanks
I suggest you use the Drupal Views module to achieve this. It's a very powerful module which allows you to run complex queries on your database and produce output in virtually any format.
Here's some information about using Views and Views Datasource module to produce JSON data.
If Views Datasource isn't any use, then Views Bonus Pack module may be an alternative.
Hope that helps.
THe reason DrupalCloud wasn;t working was due to my version of PHP 5.2.14.
The solution was to put the key values in double quotes as that is what JSON is expecting
bnvp[0] = new BasicNameValuePair("nid", "4");
bnvp[0] = new BasicNameValuePair("nid", "\"4\"");
mPairs.add(new BasicNameValuePair("method", "system.connect"));
mPairs.add(new BasicNameValuePair("method", "\"system.connect\""));
etc
Also, make sure all services modules are enable and the proper permissions are set.