Hello,
When I try to return the listRunnerBook I always get this error:
Call to api-ng failed: Response: [{"jsonrpc":"2.0","error":{"code":-32602,"message":"DSC-0018"},"id":1}]
It means that I am passing a wrong parameter or missing one. But I cannot find it.
My code is PHP:
function getRunnerBook($appKey, $sessionToken, $marketId, $selectionId) {
$params = '{
"marketId":["' . $marketId . '"],
"selectionId":["' . $selectionId . '"],
"priceProjection" : ["EX_BEST_OFFERS"]
}';
$jsonResponse = sportsApingRequest($appKey, $sessionToken, 'listRunnerBook', $params);
return $jsonResponse[0]->result[0];
}
Can anyone help me? Thank you
When I try to return the listRunnerBook I always get this error:
Call to api-ng failed: Response: [{"jsonrpc":"2.0","error":{"code":-32602,"message":"DSC-0018"},"id":1}]
It means that I am passing a wrong parameter or missing one. But I cannot find it.
My code is PHP:
function getRunnerBook($appKey, $sessionToken, $marketId, $selectionId) {
$params = '{
"marketId":["' . $marketId . '"],
"selectionId":["' . $selectionId . '"],
"priceProjection" : ["EX_BEST_OFFERS"]
}';
$jsonResponse = sportsApingRequest($appKey, $sessionToken, 'listRunnerBook', $params);
return $jsonResponse[0]->result[0];
}
Can anyone help me? Thank you


Comment