Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
313 stars 44 forks source link

create_share_link does not work #118

Closed mpr1255 closed 2 years ago

mpr1255 commented 2 years ago
system("echo 'hello world' > ./testfile.txt")
od$upload_file("./testfile.txt", "testfile.txt")
od$list_items()
od$create_share_link(path = "testfile.txt", type = "view")

Returns Error in od$create_share_link(path = "testfile.txt", type = "view") : attempt to apply non-function

mpr1255 commented 2 years ago

FYI for anyone reading this: you can create share links by calling down to the item level, i.e.:

item <- od$get_item("testfile.txt")
item$create_share_link(type = "view", expiry = "1 month")