2011-09-27 144 views

回答

1

在链路的示例代码您发布显示了这个:

public void onResult(ResponseContext context, CommentsResponse response) 
{ 
    System.out.println("Response : " + response); 
    // response.getComments(0).getAuthorName() 
    // response.getComments(0).getCreationTime() 
    // ... 
} 

基础上source code,以获取例如第一注释的authorID,你应该能够使用

String id = response.getComments(0).getAuthorID(); 
+1

这不是我的问题。我知道如何从评论中获取AuthorID。但我不知道如何从设备或用户获取AuthorID。为了更清楚我需要知道什么是AuthorID,以及如何从用户名或电话获取它? – Beno