Create a simple app (min iOS version: 6) able to consume a JSON API (/products/) returning a list of objects as follows:
{
id: <int>,
sku: <string>,
productName: <string>,
brandName: ,
| function probe(cb) { | |
| var wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket; | |
| var socket = new wsCtor(uri, 'blah'); | |
| socket.onopen = function () { | |
| // Send a probe | |
| socket.send(JSON.stringify({ | |
| type: 'probe', | |
| data: {} | |
| })); | |
| }; |
| <?php | |
| class User { | |
| /** | |
| * Returns the first address of the consumer, false otherwise. | |
| * | |
| * @return mixed | |
| */ | |
| public function getAddress() |