Consider the following function:
URLFetch[
"https://developers.betfair.com/api.betfair.com/exchange/betting/\
json-rpc/v1",
{"StatusCode", "Headers", "Content"},
"Body" -> json,
Method -> "POST",
"Headers" -> {"X-Application" -> DEVKEY,
"X-Authentication" -> TOKEN}]
Wolfram advises to use URLRead or URLExecute as from v 11.0 onwards.
What would be the URLRead / URLExecute version of the above given URLFetch?
HTTPRequest
seems to have all the options you're using here. It goes insideURLRead
. The result object has multiple pieces of data in it that you can extract (tryresult = URLRead[...]; result["Properties"]
). $\endgroup$