I'm sure I'm missing something super simple, but I've been bashing my head against this for a while and I've even gone away from it and come back to it and I just can't work it out.
I've been using the new NG API for quite a while now happily and have got most of what I want worked out. I've done everything on the aus endpoint to date now I'm trying to do exactly the same thing on the UK endpoint and I'm getting a completely blank response. I'm not getting an error I'm not getting a response with a blank array in it, it just appears to be coming as a string of "".
For example if I post to
URI -> https://api-au.betfair.com/exchange/betting/json-rpc/v1
with the following json:
{"jsonrpc":"2.0","method":"SportsAPING/v1.0/listEventTypes","params":{"filter":{},"locale":"en "},"id":1}
I get a response of
Raw response:
{"jsonrpc":"2.0","result":[{"eventType":{"id":"1","name":"Soccer"},"marketCou nt":15},{"eventType":{"id":"2","name":"Tennis"},"m arketCount":2},{"eventType":{"id":"2378961","name" :"Politics"},"marketCount":4},{"eventType":
.......
However if the only thing I change in the code is the end point and I now do a post to
URI -> https://api.betfair.com/exchange/betting/json-rpc/v1
with the following json:
{"jsonrpc":"2.0","method":"SportsAPING/v1.0/listEventTypes","params":{"filter":{},"locale":"en "},"id":1}
I get my blank response. I've tried a few different methods, and it's the same. It works all fine on the Aus exchange as soon as I change that endpoint I get nothing. I'm assuming it's not anything to do with app keys or login tokens given that would at least give a response. I've checked the endpoint several times, I've tried copying and pasting it but to no avail.
Does anyone have any suggestions of where I could look next.
I've been using the new NG API for quite a while now happily and have got most of what I want worked out. I've done everything on the aus endpoint to date now I'm trying to do exactly the same thing on the UK endpoint and I'm getting a completely blank response. I'm not getting an error I'm not getting a response with a blank array in it, it just appears to be coming as a string of "".
For example if I post to
URI -> https://api-au.betfair.com/exchange/betting/json-rpc/v1
with the following json:
{"jsonrpc":"2.0","method":"SportsAPING/v1.0/listEventTypes","params":{"filter":{},"locale":"en "},"id":1}
I get a response of
Raw response:
{"jsonrpc":"2.0","result":[{"eventType":{"id":"1","name":"Soccer"},"marketCou nt":15},{"eventType":{"id":"2","name":"Tennis"},"m arketCount":2},{"eventType":{"id":"2378961","name" :"Politics"},"marketCount":4},{"eventType":
.......
However if the only thing I change in the code is the end point and I now do a post to
URI -> https://api.betfair.com/exchange/betting/json-rpc/v1
with the following json:
{"jsonrpc":"2.0","method":"SportsAPING/v1.0/listEventTypes","params":{"filter":{},"locale":"en "},"id":1}
I get my blank response. I've tried a few different methods, and it's the same. It works all fine on the Aus exchange as soon as I change that endpoint I get nothing. I'm assuming it's not anything to do with app keys or login tokens given that would at least give a response. I've checked the endpoint several times, I've tried copying and pasting it but to no avail.
Does anyone have any suggestions of where I could look next.