I created a bash shell script to get data from football matches and it worked for years, but only now I realized that it can't collect all the matches of the day and I put the date and time of start and end correctly. I'm using curl on this collection. The syntax I use is as follows:
curl -s -X POST --header "Accept: application/json" --header "Content-Type: application/json" --header "X-Application: $APP_KEY" --header "X-Authentication: $SESSION_TOKEN" --data "[{ "jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketCatalogue", "params": {"filter":{ "eventTypeIds":[$SOCCER_ID],"marketTypeCodes" :["MATCH_ODDS"],"marketStartTime":{"from":"$DATE_START","t o" :"$DATE_END"}},"sort":"FIRST_TO_START","max Results":"$MAX_RESULTS","marketProjection":["EVENT"]}, "id": 1}]" $HOST/json-rpc/v1
Is there something I'm getting wrong in the syntax? I repeat, I manage to get a fair amount of games but not all.
curl -s -X POST --header "Accept: application/json" --header "Content-Type: application/json" --header "X-Application: $APP_KEY" --header "X-Authentication: $SESSION_TOKEN" --data "[{ "jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketCatalogue", "params": {"filter":{ "eventTypeIds":[$SOCCER_ID],"marketTypeCodes" :["MATCH_ODDS"],"marketStartTime":{"from":"$DATE_START","t o" :"$DATE_END"}},"sort":"FIRST_TO_START","max Results":"$MAX_RESULTS","marketProjection":["EVENT"]}, "id": 1}]" $HOST/json-rpc/v1
Is there something I'm getting wrong in the syntax? I repeat, I manage to get a fair amount of games but not all.


Comment