pypi Office365-REST-Python-Client 2.3.12
v 2.3.12

latest releases: 2.5.13, 2.5.12, 2.5.11...
2 years ago

Changelog

SharePoint API:

  • ListItem.validate_update_list_item method: setting dates_in_utc as an optional parameter (#509)
  • Search namespace enhancements #496

Example 1: submit search (KQL) query expression via SearchService.query method

ctx = ClientContext(site_url).with_credentials(credentials)
search = SearchService(ctx)
result = search.query("IsDocument:1").execute_query()

Example 2: construct sorting search results query and submit via SearchService.post_query method

ctx = ClientContext(site_url).with_credentials(credentials)
search = SearchService(ctx)
request = SearchRequest(query_text="IsDocument:1",
                        sort_list=[Sort("LastModifiedTime", 1)],
                        select_properties=["Path", "LastModifiedTime"],
                        row_limit=20)
result = search.post_query(request).execute_query()

Don't miss a new Office365-REST-Python-Client release

NewReleases is sending notifications on new releases.