- Add
list_teams()
andget_team()
client functions for working with Microsoft Teams. You can get a team by name or ID. The following Teams functionality is supported:- Get, list, create and delete channels
- List messages and replies
- Send messages to channels, send replies to messages
- Upload and download files
- In this version only Teams channels are supported; chats between individuals may come later.
- Move implementations for file and folder methods to the
ms_drive_item
class.- This includes the following:
list_files/list_items()
,get_item()
,create_folder()
,upload()
anddownload()
. - This facilitates managing files for Teams channels, which have associated folders in a shared document library (drive)
- The existing methods for the
ms_drive
class now call down to thems_drive_item
methods, with appropriate arguments; their behaviour should be unchanged
- This includes the following:
- Rename the client functions to allow for listing teams and sites. The original clients are still available, but are deprecated and simply redirect to the new functions. They will be removed in a future version of the package.
get_sharepoint_site()
is nowget_sharepoint_site()
get_personal_onedrive()
is nowget_personal_onedrive()
get_business_onedrive()
is nowget_business_onedrive()
- The first argument to
get_sharepoint_site()
issite_name
to get a site by name, for consistency withget_team()
. To get a site by URL, specify thesite_url
argument explicitly:get_sharepoint_site(site_url="https://my-site-url")
. - Add
list_sharepoint_sites()
function to list the sites you follow.
- Add
bulk_import()
method for lists, for creating multiple items at once. Supply a data frame as the argument. - The various client functions can now share the same underlying Graph login, which should reduce the incidence of token refreshing.
- Initial CRAN release.