I want to make calls to multiple API endpoints. In my case, this is because I don't want to store the whole JSON response in my contract.
If I wanted to get the ?color=red and ?color=blue endpoints, could I use a call like this?
oraclize_query("URL",
"json(http://my.api.com/).thing.stuff.0",
"color=red",
"color=blue");
This is a total guess. And it wouldn't allow me to pick out different JSON paths (thing.stuff.0), which I would want.
But I don't see any documentation about it. I am going off this piece of the source code:
contract OraclizeI {
address public cbAddress;
function query(uint _timestamp, string _datasource, string _arg) external payable returns (bytes32 _id);
function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) external payable returns (bytes32 _id);
function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) public payable returns (bytes32 _id);
...
}
callback– Crissi Mariam Robert Mar 09 '18 at 06:14