Hi,
I have a very frustrating issue that I just can't work out.
I have looked at the sample PHP code and created something similar, the data returns correctly, as expected...with the exception of sorting.
Whatever I put in the 'params' (whether I hard code or set dynamically) has absolutely no effect on the results coming back.
The results are 'correct' aside from the sort/filter, so the issue must lie with the way I'm formatting this section of the code, but given I've essentially copied it from the sample code I'm a bit lost!
The line in question is as follows (with the params section hard coded for visibility):
$postData = '[{"jsonrpc": "2.0", "method": "'.$method.'", "params" : {"filter":{"sortDir":"LATEST_TO_EARLIEST", "recordCount":"10"}}, "id": 1}]';
the $method variable works correctly, otherwise I wouldn't be receiving the correct data, but if it would help to post additional code of course its not a problem (I'm just trying to keep it simple)!
I have a very frustrating issue that I just can't work out.
I have looked at the sample PHP code and created something similar, the data returns correctly, as expected...with the exception of sorting.
Whatever I put in the 'params' (whether I hard code or set dynamically) has absolutely no effect on the results coming back.
The results are 'correct' aside from the sort/filter, so the issue must lie with the way I'm formatting this section of the code, but given I've essentially copied it from the sample code I'm a bit lost!
The line in question is as follows (with the params section hard coded for visibility):
$postData = '[{"jsonrpc": "2.0", "method": "'.$method.'", "params" : {"filter":{"sortDir":"LATEST_TO_EARLIEST", "recordCount":"10"}}, "id": 1}]';
the $method variable works correctly, otherwise I wouldn't be receiving the correct data, but if it would help to post additional code of course its not a problem (I'm just trying to keep it simple)!


Comment