Calc interacting with the REST API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
JZA
Reply | Threaded
Open this post in threaded view
|

Calc interacting with the REST API

JZA
I wonder if there is a library on Basic STL that allow to interact with
http, using GET/POST. Reading the reference I only came across uri, which
is close but might be more on the lines of http.

I am trying to do this in OOoBasic, with the objecting of retrieving or
interfacing with a REST web API. I have some sample code on Python:

import requests
rest = request.get('http://myrest.com/service')
quote = float(rest.text)
​print quote
*532.00*​

​What I want is to have the 532.00 in a Calc cell.

Regards.​


--
Alexandro Colorado
Apache OpenOffice Contributor
9060 55AB FFD2 2F02 0E1A  3409 599C 14FC 9450 D3CF