От колл бэка вк приходит такое уведомление
{"type":"poll_vote_new","object":{"owner_id":-171488291,"poll_id":304961653,"option_id":1026170245,"user_id":211334455},"group_id":171488291,"secret":"secrey"}
Я через API по poll_id получаю подробности данного опроса
$request = $vk->api('polls.getById', array(
'owner_id' => id группы,
'poll_id' => '304961653',
'access_token' => токен,
'v' => 5.73,
));
получаю такой ответ
Array ( [0] => Array ( [id] => 1026170245 [text] => sssssssss [votes] => 0 [rate] => 0 ) [1] => Array ( [id] => 1026170246 [text] => sssssssssssss [votes] => 1 [rate] => 100 ) [2] => Array ( [id] => 1026170247 [text] => ssssssssss [votes] => 0 [rate] => 0 ) [3] => Array ( [id] => 1026170248 [text] => s [votes] => 0 [rate] => 0 ) [4] => Array ( [id] => 1026170249 [text] => sssssssssss [votes] => 0 [rate] => 0 ) [5] => Array ( [id] => 1026170250 [text] => ssssssssssssss [votes] => 0 [rate] => 0 ) [6] => Array ( [id] => 1026170251 [text] => ssssssssss [votes] => 0 [rate] => 0 ) [7] => Array ( [id] => 1026170252 [text] => sssssssssss [votes] => 0 [rate] => 0 ) [8] => Array ( [id] => 1026170253 [text] => ssssssssssssss [votes] => 0 [rate] => 0 ) [9] => Array ( [id] => 1026170254 [text] => sssssssssssssssssssss [votes] => 0 [rate] => 0 ) )
Теперь как мне понять, допустим пришедший от callback option_id на каком месте стоит в опросе фактически?