我收到「400錯誤請求」和「你忘記了身體變量?」 代碼:這個ruby代碼有什麼問題?
require "rest-client"
require "json"
# This is the ID that you copied down in the last exercise
your_folder_id = "816582409"
# Add the "body" variable here
body = { "description" => "I made this on Codecademy!"
}
response = RestClient.put(
"https://api.box.com/2.0/folders/#{816582409}",
JSON.generate(body),
:authorization => "Bearer" << "AKGEp7MoDfLAKnMyxTt3nSNtohXW3bt1"
)
JSON.parse(response.body)["description"]