I make a request in VK api to get a list of all the albums. Data comes all that should come except for the album ID , which is very important in my case. What could someone do with this?

request to api.

 @GET("photos.getAlbums") Observable<AlbumsResponce> getAlbums(@Query("owner_id") String ownerId, @Query("need_covers") int needCovers, @Query("access_token") String accessToken, @Query("photo_sizes") int needPhotoSizes); 

data acquisition and output to the logs:

 Log.e("AlbumsPresenter", "onNext "); Log.e("AlbumsPresenter", "onNext albumsResponce get(0).getId()"+albumsResponce.getResponse().get(0).getId()); Log.e("AlbumsPresenter", "onNext albumsResponce get(0).getThumbId()"+albumsResponce.getResponse().get(0).getThumbId()); Log.e("AlbumsPresenter", "onNext albumsResponce get(0).getOwnerId()"+albumsResponce.getResponse().get(0).getOwnerId()); Log.e("AlbumsPresenter", "onNext albumsResponce get(0).getDescription()"+albumsResponce.getResponse().get(0).getDescription()); Log.e("AlbumsPresenter", "onNext albumsResponce get(0).getTitle()"+albumsResponce.getResponse().get(0).getTitle()); Log.e("AlbumsPresenter", "onNext albumsResponce get(0).getSizes().get(0).getSrc()()"+albumsResponce.getResponse().get(0).getSizes().get(0).getSrc()); 

result in console:

 E/AlbumsPresenter: onNext E/AlbumsPresenter: onNext albumsResponce get(0).getId()0 E/AlbumsPresenter: onNext albumsResponce get(0).getThumbId()431783953 E/AlbumsPresenter: onNext albumsResponce get(0).getOwnerId()384281022 E/AlbumsPresenter: onNext albumsResponce get(0).getDescription()888888888888888888 E/AlbumsPresenter: onNext albumsResponce get(0).getTitle()8888888888888888888 E/AlbumsPresenter: onNext albumsResponce get(0).getSizes().get(0).getSrc()()https://pp.vk.me/c622926/v622926353/21ba5/8uK9JEFMF90.jpg 

    1 answer 1

    Found the problem. Vkontakte documentation says that the album ID will be called in the answer "id". But the answer from api is this field called "aid"