2017-02-16 5 views

答えて

1

excelにエクスポートする直接API呼び出しはコメントとともにありません。アイテムとアプリケーションの作業をエクスポートする

これを行うには回避策があります。 1.コードごとにCommentAPIコールを添付すると、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()); 
関連する問題