I need help with the Put your files in the cloud course of the Box API. Exercise 2.3 (adding a description to the folder). My code won’t work. The code I typed is:
require “rest-client”
require “json”
your_folder_id = “YOUR_FOLDER_ID”
body = {
“description” => “I made this on Codecademy!!”
}
response = RestClient.put(
“https://api.box.com/2.0/folders/#{your_folder_id}”,
JSON.generate(body),
:authorization => "Bearer " << “ACCESS_TOKEN”
)
JSON.parse(response.body)[“description”]
Is there anything I am doing wrong?
It keeps on telling me:
Oops, try again. Make sure ACCESS_TOKEN is set as the value for :authorization