L
L
ld06872020-02-29 00:13:03
API
ld0687, 2020-02-29 00:13:03

How to get photo album covers in OK?

Good afternoon.

I get a list of group albums via photos.getAlbums, while requesting additional fields -

$req_arr = ['gid' => $owner, 'fields' => 'group_album.MAIN_PHOTO,group_album.TITLE,group_album.AID,group_album.PHOTOS_COUNT', 'count' => 100 ];

It would seem that MAIN_PHOTO should return the album cover photo ID according to https://apiok.ru/dev/types/group.GroupPhotoAlbumBe... , in fact, this response comes -
[0] => stdClass Object
              (
                    [album_type] => group
                    [aid] => 877685709414
                    [title] => Название
                    [photos_count] => 13
                )

I don't need ALBUM_TYPE at all, but I do need a cover.
Tell me, is there a way to get it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
ld0687, 2020-03-02
@ld0687

It was necessary to additionally request group_photo. *
API OK - a mystery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question