Reputation: 21
I am suppose to retrieve data from a website ( example http://intimes.eu.pn/getsurvey.php ) How should i start ? guideline please
Upvotes: 2
Views: 998
Reputation: 612
Here's how to get started:
//PLACE THE URL FROM WHICH YOU WILL RETRIEVE DATA INTO ANY VARIABLE (tURL)
put "http://intimes.eu.pn/getsurvey.php" into tURL
// RETRIEVE DATA FROM SERVER. PLACE DATA INTO VARIABLE tDATA
put url tURL into tData
// DO SOMETHING WITH tData
To work with JSON within Livecode, you will have to use a library that parse JSON. Investigating this is a start. http://revonline2.runrev.com/stack/82/LibJson-1-0b
Upvotes: 2
Reputation: 2236
To start I suggest to read the following chapters of the Users Guide
Available on MSWindows for example under C:\Program Files\RunRev\LiveCode Community 6.1\Documentation\pdf
And you probably need https://github.com/montegoulding/mergJSON
Related Square brackets with mergJSON in LiveCode - what am I doing wrong?
Upvotes: 1