kikovalle / PLGSharepointRestAPI-java

Easy to use wrapper for the Sharepoint Rest API v1. Even if this is not a full implementation it covers most common use cases and provides examples to extending this API.
MIT License
39 stars 31 forks source link

introduce API call for a single item to get its publishing content #42

Closed cpesch closed 2 years ago

cpesch commented 2 years ago

helps for sequences like

    JSONObject result = client.getFolderFilesByRelativeUrl(folderPath, "{}", "$expand=ListItemAllFields");
   ....
    int id = object.getJSONObject("ListItemAllFields").getInt("Id");
    JSONObject item = client.getListItem("Pages", id,"{}", "$select=PublishingPageContent");
kikovalle commented 2 years ago

Merged to integrate change in next release