I'm new here. Just trying to work out how this works.
I've got my Session Token from the ssoid value and Appy Key from here
https://docs.developer.betfair.com/v...nt-operations/
I'm using the delay key, active says yes, delay is yes, subscription required is yes, owner managed is no.
Here's the code I'm using
echo "1. Get all Event Types....\n";
$allEventTypes = getAllEventTypes($APP_KEY, $SESSION_TOKEN);
function getAllEventTypes($appKey, $sessionToken)
{
$jsonResponse = sportsApingRequest($appKey, $sessionToken, 'listEventTypes', '{"filter":{}}');
return $jsonResponse[0]->result;
}
My error
Notice: Trying to access array offset on value of type null in C:\wamp86\www\betfair\jsonrpc.php on line 50
Notice: Trying to get property 'result' of non-object in C:\wamp86\www\betfair\jsonrpc.php on line 50
Line 50 is
return $jsonResponse[0]->result;
I've got my Session Token from the ssoid value and Appy Key from here
https://docs.developer.betfair.com/v...nt-operations/
I'm using the delay key, active says yes, delay is yes, subscription required is yes, owner managed is no.
Here's the code I'm using
echo "1. Get all Event Types....\n";
$allEventTypes = getAllEventTypes($APP_KEY, $SESSION_TOKEN);
function getAllEventTypes($appKey, $sessionToken)
{
$jsonResponse = sportsApingRequest($appKey, $sessionToken, 'listEventTypes', '{"filter":{}}');
return $jsonResponse[0]->result;
}
My error
Notice: Trying to access array offset on value of type null in C:\wamp86\www\betfair\jsonrpc.php on line 50
Notice: Trying to get property 'result' of non-object in C:\wamp86\www\betfair\jsonrpc.php on line 50
Line 50 is
return $jsonResponse[0]->result;
Comment