I am wondering what Class/Method/api to use if I want to make a call to a URL.
For example, let's use twitter as an example. If I want to see the 10 most recent tweets regarding Aishwarya Rai, I would use twitter's search JSON API and call this URL:
http://search.twitter.com/search.json?q=Aishwarya%20Rai&rpp=10&result_ type=recent
I want to know how to call that URL. I don't need to hyperlink to it. I just want to know how to call it, and how to handle the response. If you paste that URL into a browser, you will see a typical JSON response.
So my second question is...are there any JSON handlers included in the InDesign SDK? Or any know third-party things that I can use?
Continuing with the twitter example, I would want to display the results later in a dialog box, formatted in a specific way.
Anyone one with suggestions?
Thanks.
lyadav
You could use LibCurl framework for making a call to the URL and getting the results.
And for JSON handling there are a lot of parsers available on the internet that you can download and use in your code, one such C++ API is "CAJUN - C++ API" for more details refer http://cajun-jsonapi.sourceforge.net/
Manan Joshi
- Efficient InDesign Solutions -
MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php
North America
Europe, Middle East and Africa
Asia Pacific