如何使用API在podio中导出评论部分
基本上我只是想知道,如果有什么方法就如何将跑道中的Excel表格文件与某个应用程序中包含的注释部分使用API一起导出。
有没有直接的API调用导出到excel与评论。 导出项目和应用程序的工作
有一个工作要做到这一点。 1.根据附加的代码进行评论API调用,您可以获得关于Item的所有评论,以便您可以将它们以编程方式导出到您的Excel中。
public class APICall implements Serializable { public static void main(String as[]){ APICall apiObj = new APICall(); apiObj.apicall();
}
/** * */ public void apicall() { try{ System.out.println("inside"); ResourceFactory resourceFactory = new ResourceFactory(new OAuthClientCredentials("<WS NAME>","<Your authkey>"),new OAuthUsernameCredentials("<username>", "<Password>")); CommentAPI capi = new CommentAPI(resourceFactory); Reference ref= new Reference(ReferenceType.ITEM,561530318); List<Comment> cmts = capi.getComments(ref); for(Comment e : cmts ) System.out.println(e.getValue());