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:
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?
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/
- Efficient InDesign Solutions -