Example of using RESTful API with Amazon's SimpleDB

I’ve been able to get connected to AWS S3 using bob.dickinson’s api, but a little confused about how to use SimpleDB.
Has anyone used SimpleDB with Corona, and if so, could they post of small example to get me going in the right direction?
I’ve seen this-

http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/MakingRESTRequests.html

but still a little confused as how to write that in lua.
Any help would be greatly appreciated.
[import]uid: 13020 topic_id: 23848 reply_id: 323848[/import]

I’m not sure whether this will send you in the right direction, but I was testing Roar Engine a while back and this skeleton code works for parsing REST responses.

local xml = require( "xml" ).newParser()  
local myXML  
  
local function parse (xmlText)  
 print (#xmlText)  
 local parsedText = xml:ParseXmlText(xmlText)  
 print ("roar:" .. parsedText.name)  
 print ("tick:" .. parsedText.properties["tick"])  
 print ("info:" .. parsedText.child[1].name)  
 print ("ping:" .. parsedText.child[1].child[1].name)  
 print ("status:" .. parsedText.child[1].child[1].properties["status"])  
 print ("text:" .. parsedText.child[1].child[1].child[1].name)  
 print ("hello:" .. parsedText.child[1].child[1].child[1].value)  
  
  
end  
  
local function networkListener( event )  
 if ( event.isError ) then  
 print( "Network error!")  
 else  
 print ( "RESPONSE: " .. event.response )  
 myXML = event.response  
 parse (myXML)  
 end  
end  
   
  
network.request( "http://api.roar.io/YOUR\_PROJECT\_NAME/info/ping/", "GET", networkListener )  

This will print out the Roar Engine response in the terminal window. [import]uid: 1560 topic_id: 23848 reply_id: 96090[/import]

Amazon’s SimpleDB’s API’s are insanely over complicated. I took a look at it, was frustrated by the documentation so I gave up on it.
[import]uid: 19626 topic_id: 23848 reply_id: 96127[/import]

Thats depressing; can you give me any good alternatives you have found? [import]uid: 13020 topic_id: 23848 reply_id: 96169[/import]

I roll my own on my webhost. But then I have a strong background in writing server side database scripts – my PHP and MySQL Fu is strong.
[import]uid: 19626 topic_id: 23848 reply_id: 96177[/import]

Hey all,

Just posted a few really ugly but working functions for SimpleDB to this post:

http://developer.anscamobile.com/forum/2012/02/26/questions-about-amazon-aws-integration#comment-96205

Thought anyone subscribing to this thread might find something of use there. [import]uid: 64596 topic_id: 23848 reply_id: 96207[/import]