Method: TransferZero::WebhooksApi#get_webhook_events_with_http_info
- Defined in:
- lib/transferzero-sdk/api/webhooks_api.rb
#get_webhook_events_with_http_info(opts = {}) ⇒ Array<(WebhookDefinitionEventListResponse, Fixnum, Hash)>
Find possible webhook events Fetching possible webhook events
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/transferzero-sdk/api/webhooks_api.rb', line 145 def get_webhook_events_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: WebhooksApi.get_webhook_events ...' end # resource path local_var_path = '/webhooks/events' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['AuthorizationKey', 'AuthorizationNonce', 'AuthorizationSecret', 'AuthorizationSignature'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WebhookDefinitionEventListResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: WebhooksApi#get_webhook_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |