Languages

Menu
Sites
Language
Get Json or XML from internet

Hi All,

I'm working on Native App.

For my application need to get json from internet with this link.

http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=fd3e8e3d32dd0534ed29da7f9404bd2e&format=json&nojsoncallback=1&api_sig=8094ee6fb55722bd076f5411fe952262

It does not work.

But when I copy its contents into file (photo.json) at local then it worked fine.

Please help me get json from internet.

Thanks,

 

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
Leo Joseph
What is the problem you are facing ? You are posting the URL and you are not getting response ? OR you are not able to post the URL ?
Alex Dem
Hi, You could perform HTTP GET and get response using IHttpTransactionEventListener interface (see HttpClient example). After HTTP GET will be performed in OnTransactionReadyToRead you will achive needed content. See also here, it looks like your case https://developer.tizen.org/forums/native-application-development/get-data-url You just need to parse ByteBuffer using JsonParser::ParseN after. Alexey.