NEWS.md
list_shared_items()
/list_shared_files()
method for drives now always returns a list of drive item objects, rather than a data frame. If the info
argument is supplied with a value other than “items”, a warning is issued.ms_drive_item$upload()
and download()
. Subfolders can also be transferred recursively, and optionally in parallel. There are also corresponding ms_drive$upload_folder()
and download_folder()
methods.save_dataframe()
, save_rds()
, save_rdata()
, load_dataframe()
, load_rds()
, and load_rdata()
. See ?ms_drive_item
and ?ms_drive
for more details.copy
and move
methods for drive items, and corresponding copy_item
and move_item
methods for drives.ms_drive_item$upload()
to be a raw or text connection. Similarly, if the destination for ms_drive_item$download()
is NULL, the downloaded data is returned as a raw vector.ms_drive
methods, including getting, uploading and downloading. This can be useful since the object ID is immutable, whereas file paths can change, eg if the file is moved or renamed. See ?ms_drive
for more details.get_path()
method for drive items, which returns the path to the item starting from the root. Needed as Graph doesn’t seem to store the path in an unmangled form anywhere.get_parent_folder()
method for drive items, which returns the parent folder as another drive item. The parent of the root is itself.token
an explicit argument to the client functions, for supplying an OAuth token object directly. Note that this was always possible, but is now better documented and supported. This is mostly to support the Shiny use case, as well as other situations where authentication is more complicated than usual.make_basic_list()
is now a private method, rather than being exported. Thanks to Robert Ashton (@r-ash) for the PR.get_business_outlook()
(#39). To access a shared mailbox, supply one of the arguments shared_mbox_id
, shared_mbox_name
or shared_mbox_email
specifying the ID, displayname or email address of the mailbox respectively.list_emails()
to fail (#60).list_chats()
function to list the chats you’re participating in, and the get_chat()
function to retrieve a specific chat.ms_chat
, which has similar methods to a channel: you can send, list and retrieve messages, and list and retrieve members/attendees. One difference is that chats don’t have an associated file folder, unlike channels.list_shared_items()
method for the ms_drive
class to access files and folders shared with you (#45).get_drive()
method for these classes is now drive_name
; to get a drive by ID, specify the argument name explicitly: get_drive(drive_id=*)
by_item
argument to the delete_item()
method for drives and the delete()
method for drive items (#21). This is to allow deletion of non-empty folders on SharePoint sites with data protection policies in place. Use with caution.search
argument to the ms_outlook_folder$list_emails()
method. The default is to search in the from, subject and body of the emails.list_*
class methods now have filter
and n
arguments to filter the result set and cap the number of results, following the pattern in AzureGraph 1.3.0. The default values are filter=NULL
and n=Inf
. If n=NULL
, an ms_graph_pager
iterator object is returned instead to allow manual iteration over the results. Note that support for filtering in the underlying Graph API is somewhat uneven at the moment.get_plan()
and list_plans()
methods to the az_group
class. Note that only Microsoft 365 groups can have plans, not any other type of group.get_group()
method to retrieve the associated group, and then get the plan from the group.get_personal_outlook()
and get_business_outlook()
client functions to access the emails in your personal account and work or school account, respectively. Functionality supported includes:
list_files()
method to fail on non-Windows systems (reported by Tony Sokolov).list_teams()
and get_team()
client functions for working with Microsoft Teams. You can get a team by name or ID. The following Teams functionality is supported:
ms_drive_item
class.
list_files/list_items()
, get_item()
, create_folder()
, upload()
and download()
.ms_drive
class now call down to the ms_drive_item
methods, with appropriate arguments; their behaviour should be unchangedget_sharepoint_site()
is site_name
to get a site by name, for consistency with get_team()
. To get a site by URL, specify the site_url
argument explicitly: get_sharepoint_site(site_url="https://my-site-url")
.list_sharepoint_sites()
function to list the sites you follow.