A
A
Artur Yalaltdinov2014-08-29 12:25:59
PHP
Artur Yalaltdinov, 2014-08-29 12:25:59

Wall.get php VK API, how to display an image?

Hello everyone, I ran into the problem of attachments, I can’t figure out how to find out if there is an attached file in the json response,
that is, the request itself

$msg = json_decode(file_get_contents("http://api.vk.com/method/wall.get?domain=domain&count=100&v=5.3"), false);
$msg = $msg->response->items;

how to be further?
if(!$msg[0]->attachments) 
//или как ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2014-08-29
@crazy_str

Well, look at what is returned to you, var_dump to help, what is the question then?
https://vk.com/dev/wall.get
https://vk.com/dev/post
https://vk.com/dev/attachments_w

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question