Answer the question
In order to leave comments, you need to log in
Why does wall.get give empty java sdk vk objects?
I'm using Java SDK
try {
GetResponse getQuery = vk.wall().get(actor)
.ownerId(-9165838)
.offset(0)
.count(10)
.filter(WallGetFilter.ALL)
.execute();
System.out.println(getQuery);
} catch (ApiException e) {
e.printStackTrace();
} catch (ClientException e) {
e.printStackTrace();
}
GetResponse{
count=3983,
items=[
WallpostFull{copyHistory=null, canEdit=null, createdBy=null, canDelete=null, canPin=null, isPinned=1, comments=CommentsInfo{count=0, canPost=1}, likes=LikesInfo{count=0, userLikes=0, canLike=1, canPublish=1}, reposts=RepostsInfo{count=0, userReposted=0}},
WallpostFull{copyHistory=null, canEdit=null, createdBy=null, canDelete=null, canPin=null, isPinned=null, comments=CommentsInfo{count=0, canPost=1}, likes=LikesInfo{count=0, userLikes=0, canLike=1, canPublish=0}, reposts=RepostsInfo{count=0, userReposted=0}},
WallpostFull{copyHistory=null, canEdit=1, createdBy=854708, canDelete=1, canPin=null, isPinned=null, comments=CommentsInfo{count=0, canPost=1}, likes=LikesInfo{count=0, userLikes=0, canLike=1, canPublish=0}, reposts=RepostsInfo{count=0, userReposted=0}},
...
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question