2016-01-22 23 views

回答

1

有沒有特定的API調用與Java的cloudant 2.2.0的_list端點交互。

但是,可以手動設置的請求,所以你可以嘗試這樣的:

// Compose the URI and create a HttpConnection to GET it 

    URI listRequestURI = new URI(db.getDBUri().toString() 
           + "/_design/your-designdoc/_list/your-list/your-view"); 

    HttpConnection listRequest = Http.GET(listRequestURI); 

    // Execute the request and get the response 

    HttpConnection listResponse = account.executeRequest(listRequest); 

    // Get the response in the desired format and process 
    listResponse.responseAsString(); 
    // or responseAsBytes() 
    // or responseAsInputStream() 
相關問題