Hi,
Is it possible to post to the Tiggzi database from a windows form application using HttpWebRequest ?
Hi,
Is it possible to post to the Tiggzi database from a windows form application using HttpWebRequest ?
Sure, you can do it from anywhere as long as you issue a standard POST request.
Hi Max
That's good, could you post an example of the URL required to a post to a tiggzi database with two fields one called 'message' and the other 'datecreated' please.
Regards,
Joe
Hi Katya,
Sorry about the spelling of your name in the last reply..
I realised I had truncated the string which should look like:
https://api.tiggzi.com/rest/1/db/coll...
The response from the server was:
{"code":"undefined","description":"No resource method found for GET, return 405 with Allow header"}
URL for adding a row in database must look like:
https://api.tiggzi.com/rest/1/db/coll...
However, to add a row you have to make POST request with special http header parameters.
You can see how to execute a request using tool curl:
http://en.wikipedia.org/wiki/CURL
You cannot do it using GET request.
Hi, I have found Curl a really difficult process to get my head around! The links you have provided don't help that much! Being able to interact with the data source is absolutely key to my app! Can you give me anymore information that will aid me in getting over this hurdle?
Regards,
Joe
You don't need to work with curl command. From Project view, Create New Database Services. It will generate all the services you need automatically.
Hi Max,
How does this help when I need to make Posts or Gets via HttpWebRequest from an external application?
Regards,
Joe
From Project view, Create New Database Services.
My screen freezes when using this from project view!
If you are making a request from an external app (not from an app built in Tiggzi) then you do need to look at the curl command. I don't know what programming language you use, but you would need to put the request and the curl command is your guide.