Method: ZoomUs::Meetings#meeting_registrant_create_with_http_info
- Defined in:
- lib/zoom_us/meetings.rb
#meeting_registrant_create_with_http_info(meeting_id, body, opts = {}) ⇒ Array<(InlineResponse20111, Fixnum, Hash)>
Add Meeting Registrant Register a participant for a meeting.<br><br> Scopes: `meeting:write:admin` `meeting:write`
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 |
# File 'lib/zoom_us/meetings.rb', line 795 def meeting_registrant_create_with_http_info(meeting_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MeetingsApi.meeting_registrant_create ...' end # verify the required parameter 'meeting_id' is set if @api_client.config.client_side_validation && meeting_id.nil? fail ArgumentError, "Missing the required parameter 'meeting_id' when calling MeetingsApi.meeting_registrant_create" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MeetingsApi.meeting_registrant_create" end # resource path local_var_path = '/meetings/{meetingId}/registrants'.sub('{' + 'meetingId' + '}', meeting_id.to_s) # query parameters query_params = {} query_params[:'occurrence_ids'] = opts[:'occurrence_ids'] if !opts[:'occurrence_ids'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['OAuth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InlineResponse20111') if @api_client.config.debugging @api_client.config.logger.debug "API called: MeetingsApi#meeting_registrant_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |