Page 1 of 1

Reading in API JSON Response

Posted: Thu Sep 24, 2015 9:19 am
by jaylamb20
Hello,

I have dutifully searched the documentation, add-ins, and forums and have not found an answer to this question:

Is it possible to send a GET request to a web API and store the response (in JSON) in a an EViews object (most likely a string)? I don't expect EViews to parse the object...if I could just read it into a string, I can write my own parser.

wfopen(), import(), and read() have not been successful thus far.

Thank you,

-James

Re: Reading in API JSON Response

Posted: Thu Sep 24, 2015 9:31 am
by EViews Gareth
Not easily.

Re: Reading in API JSON Response

Posted: Thu Sep 24, 2015 10:00 am
by jaylamb20
No worries. To R, then!

-James

Re: Reading in API JSON Response

Posted: Tue Jul 26, 2016 8:32 am
by surabius
GET request to a web API and store the response (in JSON) and parse it. Is this still possible in the latest version?. If so, please direct me to the documentation.

Re: Reading in API JSON Response

Posted: Tue Jul 26, 2016 8:54 am
by startz
You might think about using the new Python to EViews interface for this job.

Re: Reading in API JSON Response

Posted: Tue Jul 26, 2016 11:57 am
by surabius
Thank you for the response. Can you provide me some tips on how can i get started?. Looking for more detail please.

Re: Reading in API JSON Response

Posted: Tue Jul 26, 2016 1:15 pm
by startz
EViews has a white paper on their website about hot to connect Python to EViews. The details of JSON are beyond me I'm afraid.