When using the following script (python)
url = "http://historicdata.betfair.com/api/DownloadFile?filePath=/data/xds_nfs/edp_processed/BASIC/2023/Jan/28/xxxxxxxx/1.yyyyyyyyy.bz2"
payload={}
headers = {
'ssoid': 'CORRECT SESSION TOKEN USED HERE'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
I'm getting the following response;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>package_not_purchased</title>
</head>
<body>
package_not_purchased
</body>
</html>
Indicating the package having not been purchased. This is despite having been through the prior checks of;
https://historicdata.betfair.com/api/GetMyData
https://historicdata.betfair.com/api...lectionOptions
https://historicdata.betfair.com/api...BasketDataSize
https://historicdata.betfair.com/api...oadListOfFiles
Through this set the following has been used;
payload = json.dumps({
"sport": "Other Sports",
"plan": "Basic Plan",
"fromDay": 1,
"fromMonth": 1,
"fromYear": 2023,
"toDay": 31,
"toMonth": 3,
"toYear": 2024,
"eventId": None,
"eventName": None,
"marketTypesCollection": ["MARKET ENTRY HERE"],
"countriesCollection": ["COUNTRY ENTRY HERE", ""],
"fileTypeCollection": ["M"]
})
I'm stuck so if anyone can provide any pointers for how to get around this, that'd be greatly appreciated.
url = "http://historicdata.betfair.com/api/DownloadFile?filePath=/data/xds_nfs/edp_processed/BASIC/2023/Jan/28/xxxxxxxx/1.yyyyyyyyy.bz2"
payload={}
headers = {
'ssoid': 'CORRECT SESSION TOKEN USED HERE'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
I'm getting the following response;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>package_not_purchased</title>
</head>
<body>
package_not_purchased
</body>
</html>
Indicating the package having not been purchased. This is despite having been through the prior checks of;
https://historicdata.betfair.com/api/GetMyData
https://historicdata.betfair.com/api...lectionOptions
https://historicdata.betfair.com/api...BasketDataSize
https://historicdata.betfair.com/api...oadListOfFiles
Through this set the following has been used;
payload = json.dumps({
"sport": "Other Sports",
"plan": "Basic Plan",
"fromDay": 1,
"fromMonth": 1,
"fromYear": 2023,
"toDay": 31,
"toMonth": 3,
"toYear": 2024,
"eventId": None,
"eventName": None,
"marketTypesCollection": ["MARKET ENTRY HERE"],
"countriesCollection": ["COUNTRY ENTRY HERE", ""],
"fileTypeCollection": ["M"]
})
I'm stuck so if anyone can provide any pointers for how to get around this, that'd be greatly appreciated.


Comment