I want to get data using HTTPS from
POST https://developers.betfair.com/api.betfair.com/exchange/betting/json-rpc/v1 HTTP/1.1
using JSON
[{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listEvents", "params": {"filter":{}}, "id": 1}]
I have to provide values for X-Application and X-Authentication ( which I have but are private for the account ).
I know that this can be done directly from Mathematica.
Which function should I use and where / how should I provide the URL, POST, X-Application, X-Authentication and JSON data.
Example code for a similar API would already be helpful, I guess.
URLFetch
with the"Headers"
and"Body"
option. $\endgroup$