1
基本上我只想知道,如果有方法如何导出excel表格文件在跑道与包含在某个应用程序使用API的评论部分。如何导出评论部分在podio使用API
基本上我只想知道,如果有方法如何导出excel表格文件在跑道与包含在某个应用程序使用API的评论部分。如何导出评论部分在podio使用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());