V
V
voltd gand2019-05-17 16:32:32
PHP
voltd gand, 2019-05-17 16:32:32

How to find owner_id?

{
"response": {
"count": 1,
"items": [{
"peer": {...},
"in_read": 0,
"out_read": 0,
"last_message_id": 0,
"can_write": {...},
"chat_settings": {
"acl": {...},
"owner_id": xxxx,
"state": "in",
"title": "ЭТО ПРОСТО БАН!",
"active_ids": [xxx, xxx],
"members_count": 2,
"photo": {
"photo_100": "https://pp.userap...wgyPfm55o.jpg?ava=1",
"photo_200": "https://pp.userap...j4eBuhJ9M.jpg?ava=1",
"photo_50": "https://pp.userap...YGQMcYK8k.jpg?ava=1"
},
"admin_ids": [-179327162]
},
"current_keyboard": {
"one_time": false,
"author_id": -179327162,
"buttons": 
}
}]
}
}

You need to get the string:
"owner_id": xxxx,
I did it like this, but it didn't work.
$dop = json_decode(file_get_contents('https://api.vk.com/method/messages.getConversationsById?'. $ho)); // отправка запроса
    $kek = $dop->response->items[5]->chat_settings[1]->owner_id;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question