Make a POST or GET request to http://tinydb.org/_write.
write GET example:Call a url. If you want the data returned in a certain format add ?_f=json to your request. The current formats are:
- these also work on the _write call, allowing your app to get the id back in a friendly format.
- the default format for read is HTML, so if you provide no _f parameter, you will recieve html
- the default format for write is plaintext, so if you provide no _f parameter, you will recieve a plaintext url for your tinydb data
*** Note: It should be assumed that any data stored in tinydb is not secure and can be accessed by anyone.
To create an entry with multiple rows add the _i parameter to your first write call (i.e. http://tinydb.org/_write?_i&name=jane&comment=first row). This will basically your first entry be your parent_id. So additional writes to this should contain the id as the _i variable returned on the first write. (i.e. http://tinydb.org/_write?_i=Qw&name=joe&comment=another row).
To return a list of the rows just call the original id with the _i=true as a parameter (i.e. http://tinydb.org/Qw?_f=xml&_i=true ) Remember you can create rows, but not edit them - you can see a sample of this here. FLASH DEVELOPERS: There is a bug with google app crossdomain.xml file -- so to get the proper unrestricted crossdomain.xml you must use the appspot.com domain which in our case is tinydborg2.appspot.com (i.e. http://tinydborg2.appspot.com/Qw?_i=true&_f=xml).