V
V
voltd gand2019-05-09 19:42:09
PHP
voltd gand, 2019-05-09 19:42:09

How to find the link in the messages.getInviteLink method?

$gg = file_get_contents('https://api.vk.com/method/messages.getInviteLink?'. $ri);
$tko = $gg->response[0]->link;

In the gg variable, is stored:
"response": {
"link": "https://vk.me/joi...yiiJxCZ4E2PWvV1g2w_"
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2019-05-09
@vladimir_volohov

$gg = json_decode(file_get_contents('https://api.vk.com/method/messages.getInviteLink?'. $ri));
$tko = $gg->response->link;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question