lib/webex/meeting/report.rb in webex-0.0.1 vs lib/webex/meeting/report.rb in webex-0.0.2

- old
+ new

@@ -1,10 +1,11 @@ module Webex module Meeting # comment class Report include Webex + include Webex::Meeting attr_accessor :recording_topic, :specify_url, :agenda, :registration, :destination_address_after_session, :description, :email_address, :duration_hours, :duration_minutes, :month, :year, :presenter, :file_access_password, :file_size, :recording_type, :view_download, :back_url, :day @@ -16,11 +17,12 @@ option_required! :back_url end def create option_required! :recording_topic - { params: generate_params(api_type: 'CR'), - url: URI.join(CONFIGURATION.host_url + PATH_URL) } + res = Net::HTTP.post_form post_url, generate_params(api_type: 'CR') + p res.body + Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }] end private def cancel_mail?