Hi, I'm using this snippet for fetching results from Leaderbord:
$otherMetaHeaders = array();
$otherMetaHeaders['offset'] =1;
$scoreBoardService->setOtherMetaHeaders($otherMetaHeaders);
But I still get same 100 results as without it. below you can see my code, probably I put this snippet in wrong place? I made some changes in the core function getTopRankings in library to check the $otherMetaHeaders['offset']. It seems it changes. Without snippet it is -1 with snippet it is 100. But I still get same results in $game->getScoreList()
Help me please
My code:
App42API::initialize(API_KEY,SECRET_KEY);
$scoreBoardService = App42API::buildScoreBoardService();
$results = [];
$otherMetaHeaders = [];
$otherMetaHeaders['offset'] = 100;
$scoreBoardService->setOtherMetaHeaders($otherMetaHeaders);
$game = $scoreBoardService->getTopRankings($gameName);
$results = $game->getScoreList();
echo "<pre>";
print_r($results);
echo "<pre>";