ruby/box_api.rb
def create_folder(folder_name, recipient, sender)
	puts "Creating folder: " + folder_name
	folder = {:name => folder_name, :to => recipient, :from => sender}
	data = JSON.generate(folder)
	response = request_post('/api/partner/folder', data)
	puts response.body
end
# Creates a Folder in Box
#
# Param: 
#   folder_name - name of the created folder
#   recipient - name of the receiver
#   sender - name of the sender
Creates a Folder in Box
Param:
folder_name - name of the created folder
recipient - name of the receiver
sender - name of the sender
Creates a Folder in Box Param : folder_name - name of the created folder recipient - name of the receiver sender - name of the sender
def create_folder(folder_name, recipient, sender)
	puts "Creating folder: " + folder_name
	folder = {:name => folder_name, :to => recipient, :from => sender}
	data = JSON.generate(folder)
	response = request_post('/api/partner/folder', data)
	puts response.body
end
def create_folder ( folder_name , recipient , sender ) puts "Creating folder: " + folder_name folder = { :name => folder_name , :to => recipient , :from => sender } data = JSON . generate ( folder ) response = request_post ( '/api/partner/folder' , data ) puts response . body end
Creates a Folder in Box
Param:
folder_name - name of the created folder
recipient - name of the receiver
sender - name of the sender
Creates a Folder in Box Param : folder_name - name of the created folder recipient - name of the receiver sender - name of the sender
folder_name
recipient
sender