Closed mpr1255 closed 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
Error in od$create_share_link(path = "testfile.txt", type = "view") : attempt to apply non-function
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")
Returns
Error in od$create_share_link(path = "testfile.txt", type = "view") : attempt to apply non-function