1

I'm trying to change the access permissions of a folder on skydrive, but it isn't working.

Dictionary<string, object> folderData = new Dictionary<string, object>();
folderData.Add("shared_with", "Everyone (public)");
LiveConnectClient client = new LiveConnectClient(session);
client.PutAsync(folderId, folderData);

What am I doing wrong?

4

2 回答 2

0

权限是只读的。像这样,文件夹的读取权限。

...
    void Properties_Completed(object sender, LiveOperationCompletedEventArgs e)//completed
    {
        if (e.Error == null)
        {
            IDictionary<string,object> result = e.Result;
            object shr = result["shared_with"];
            IDictionary<string, object> permission = shr as IDictionary<string, object>;
            string access = permission["access"].ToString();
        }
    {
于 2012-07-29T10:53:17.353 回答
0

请记住,您需要激活wl.skydrive_update范围才能更新与 SkyDrive 实体相关的数据。此外,权限是只读的(详见此处)。

于 2012-07-28T23:28:36.740 回答