write a paypal / amazon style app the communicates with a remote database ?

If you look at the Paypal and Amazon apps on say, the Apple App Store, how do they go about communicating with a remote database ?

Do they use a RESTful architecture, or some other method ?

[import]uid: 97524 topic_id: 37253 reply_id: 67253[/import]

It’s hard to say what exact protocol those apps use. Amazon’s AWS is a RESTful service so it’s likely there app probably does that. As for PayPal, I’m not familiar with their API.

But REST is a great way for Corona Apps to talk to web services. network.request along with using the json.encode and json.decode functions allow you to easily move Corona Tables into data that can be consumed with web services since JSON is typically supported. Likewise, it’s pretty easy if you know PHP to make your own RESTful API to get data from a MySQL database and get it into your app. Simply json_encode a PHP array on the server side, return that json string to your app using network.request and then use json.encode and then you have a Lua table all ready for you to use.

[import]uid: 199310 topic_id: 37253 reply_id: 145526[/import]

Thanks for the info Rob.

I’ll pursue this.

I have experience with Coldfusion so I may use this instead of PHP.

[import]uid: 97524 topic_id: 37253 reply_id: 145637[/import]

It’s hard to say what exact protocol those apps use. Amazon’s AWS is a RESTful service so it’s likely there app probably does that. As for PayPal, I’m not familiar with their API.

But REST is a great way for Corona Apps to talk to web services. network.request along with using the json.encode and json.decode functions allow you to easily move Corona Tables into data that can be consumed with web services since JSON is typically supported. Likewise, it’s pretty easy if you know PHP to make your own RESTful API to get data from a MySQL database and get it into your app. Simply json_encode a PHP array on the server side, return that json string to your app using network.request and then use json.encode and then you have a Lua table all ready for you to use.

[import]uid: 199310 topic_id: 37253 reply_id: 145526[/import]

Thanks for the info Rob.

I’ll pursue this.

I have experience with Coldfusion so I may use this instead of PHP.

[import]uid: 97524 topic_id: 37253 reply_id: 145637[/import]