{"action":"opened","issue":{"url":"https://api.github.com/repos/ronyv89/skydrive/issues/12","labels_url":"https://api.github.com/repos/ronyv89/skydrive/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ronyv89/skydrive/issues/12/comments","events_url":"https://api.github.com/repos/ronyv89/skydrive/issues/12/events","html_url":"https://github.com/ronyv89/skydrive/issues/12","id":96286757,"number":12,"title":"Rename folder in skydrive","user":{"login":"kachroosneha","id":13433647,"avatar_url":"https://avatars.githubusercontent.com/u/13433647?v=3","gravatar_id":"","url":"https://api.github.com/users/kachroosneha","html_url":"https://github.com/kachroosneha","followers_url":"https://api.github.com/users/kachroosneha/followers","following_url":"https://api.github.com/users/kachroosneha/following{/other_user}","gists_url":"https://api.github.com/users/kachroosneha/gists{/gist_id}","starred_url":"https://api.github.com/users/kachroosneha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kachroosneha/subscriptions","organizations_url":"https://api.github.com/users/kachroosneha/orgs","repos_url":"https://api.github.com/users/kachroosneha/repos","events_url":"https://api.github.com/users/kachroosneha/events{/privacy}","received_events_url":"https://api.github.com/users/kachroosneha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-21T10:55:32Z","updated_at":"2015-07-21T10:55:32Z","closed_at":null,"body":"I am using Skydrive gem in my rails application.\r\nFor renaming the folder I had written:\r\n\r\n````\r\ndef renaming_folder\r\n      client = Skydrive::Client.new(@@access_token)\r\n      folder_id = params[:folder_id]\r\n      # (url, {:body => options})\r\n      # options = {name: \"#{params[:rename_field]}\"}\r\n      puts \"-------------------...\"\r\n      puts \"#{params[:folder_id]}\"\r\n      puts client.inspect\r\n      puts \"=======folder and client----\"\r\n      # skydrive_object = client.get_skydrive_object_by_id(folder_id)\r\n      # skydrive_object.update_skydrive_object(params[:folder_id], options={name: params[:rename_field]})\r\n      # skydrive_folder.update(options = {name: params[:rename_field]})\r\n      folderObject = client.update_skydrive_object(\"#{params[:folder_id]}\", options={name: \"#{params[:rename_field]}\"})\r\nend\r\n````\r\n\r\nBut I am getting http_error_400: Bad Request error. I am getting \r\n{\"utf8\"=>\"✓\",\r\n \"authenticity_token\"=>\"BAYGFcb5/74c7RV5NH1u4DCAT1MqLvLCkp9F3Q/Fav+B2wdab4aE5LBJAVr90MMu0GbfFwHTuLyncFRWtGyYTA==\",\r\n \"rename_field\"=>\"weqweqwe\",\r\n \"folder_id\"=>\"folder.cecb8eb83d90dbeb.CECB8EB83D90DBEB!106\",\r\n \"commit\"=>\"Rename Folder\"}\r\nin my parameters.\r\n\r\nI had also checked the following:\r\n````\r\ndef renaming_folder\r\n   client = Skydrive::Client.new(@@access_token)\r\n   folder_object = client.get_skydrive_object_by_id(params[:folder_id])\r\n   folder_object.update({name: params[:rename_field]})\r\n   redirect_to drive_show_path\r\n end\r\n````\r\nBut still the same issue was coming.\r\n\r\nAlso tried the following:\r\n\r\n- When tried to invoke 'update_skydrive_object' method on the object returned by client.get_skydrive_object_by_id(folder_id) then got undefined method `update_skydrive_object' for #<Skydrive::Folder:0x007f455e2e50b8> error.\r\n\r\n- When tried to invoke 'update_skydrive_object' method on client object then its giving http_error_400: Bad Request.\r\n\r\n- When tried to invoke 'update_skydrive_object' method on client object with empty options array (like option={}) then also its giving http_error_400: Bad Request.\r\n\r\n- When tried to invoke 'update_skydrive_object' method on client object by removing 'options=' then also its giving http_error_400: Bad Request."}}