Class: PureCloud::OAuthApi
- Inherits:
-
Object
- Object
- PureCloud::OAuthApi
- Defined in:
- lib/purecloud/api/o_auth_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_clients_client_id(client_id, opts = {}) ⇒ nil
Delete OAuth Client.
-
#delete_clients_client_id_with_http_info(client_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete OAuth Client.
-
#delete_okta(opts = {}) ⇒ nil
Delete Okta Identity Provider.
-
#delete_okta_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete Okta Identity Provider.
-
#delete_onelogin(opts = {}) ⇒ nil
Delete OneLogin Identity Provider.
-
#delete_onelogin_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete OneLogin Identity Provider.
-
#delete_provider_id(opts = {}) ⇒ nil
Delete an identity provider.
-
#delete_provider_id_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete an identity provider.
-
#delete_purecloud(opts = {}) ⇒ nil
Delete PureCloud Identity Provider.
-
#delete_purecloud_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete PureCloud Identity Provider.
-
#delete_salesforce(opts = {}) ⇒ nil
Delete Salesforce Identity Provider.
-
#delete_salesforce_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete Salesforce Identity Provider.
-
#get_clients(opts = {}) ⇒ OAuthClientEntityListing
The list of OAuth clients.
-
#get_clients_client_id(client_id, opts = {}) ⇒ OAuthClient
Get OAuth Client.
-
#get_clients_client_id_with_http_info(client_id, opts = {}) ⇒ Array<(OAuthClient, Fixnum, Hash)>
Get OAuth Client.
-
#get_clients_with_http_info(opts = {}) ⇒ Array<(OAuthClientEntityListing, Fixnum, Hash)>
The list of OAuth clients.
-
#get_identityproviders(opts = {}) ⇒ OAuthProviderEntityListing
The list of identity providers.
-
#get_identityproviders_with_http_info(opts = {}) ⇒ Array<(OAuthProviderEntityListing, Fixnum, Hash)>
The list of identity providers.
-
#get_okta(opts = {}) ⇒ Okta
Get Okta Identity Provider.
-
#get_okta_with_http_info(opts = {}) ⇒ Array<(Okta, Fixnum, Hash)>
Get Okta Identity Provider.
-
#get_onelogin(opts = {}) ⇒ OneLogin
Get OneLogin Identity Provider.
-
#get_onelogin_with_http_info(opts = {}) ⇒ Array<(OneLogin, Fixnum, Hash)>
Get OneLogin Identity Provider.
-
#get_provider_id(opts = {}) ⇒ OAuthProvider
Get an identity provider.
-
#get_provider_id_with_http_info(opts = {}) ⇒ Array<(OAuthProvider, Fixnum, Hash)>
Get an identity provider.
-
#get_purecloud(opts = {}) ⇒ PureCloud
Get PureCloud Identity Provider.
-
#get_purecloud_with_http_info(opts = {}) ⇒ Array<(PureCloud, Fixnum, Hash)>
Get PureCloud Identity Provider.
-
#get_salesforce(opts = {}) ⇒ Salesforce
Get Salesforce Identity Provider.
-
#get_salesforce_with_http_info(opts = {}) ⇒ Array<(Salesforce, Fixnum, Hash)>
Get Salesforce Identity Provider.
-
#initialize(api_client = ApiClient.default) ⇒ OAuthApi
constructor
A new instance of OAuthApi.
-
#post_clients(opts = {}) ⇒ OAuthClient
Create OAuth client The OAuth Grant/Client is required in order to create an authentication token and gain access to PureCloud.
-
#post_clients_client_id_secret(client_id, opts = {}) ⇒ nil
Regenerate Client Secret This operation will set the client secret to a randomly generated cryptographically random value.
-
#post_clients_client_id_secret_with_http_info(client_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Regenerate Client Secret This operation will set the client secret to a randomly generated cryptographically random value.
-
#post_clients_with_http_info(opts = {}) ⇒ Array<(OAuthClient, Fixnum, Hash)>
Create OAuth client The OAuth Grant/Client is required in order to create an authentication token and gain access to PureCloud.
-
#put_clients_client_id(client_id, opts = {}) ⇒ OAuthClient
Update OAuth Client.
-
#put_clients_client_id_with_http_info(client_id, opts = {}) ⇒ Array<(OAuthClient, Fixnum, Hash)>
Update OAuth Client.
-
#put_okta(opts = {}) ⇒ nil
Update/Create Okta Identity Provider.
-
#put_okta_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create Okta Identity Provider.
-
#put_onelogin(opts = {}) ⇒ nil
Update/Create OneLogin Identity Provider.
-
#put_onelogin_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create OneLogin Identity Provider.
-
#put_provider_id(opts = {}) ⇒ nil
Update an identity provider.
-
#put_provider_id_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update an identity provider.
-
#put_purecloud(opts = {}) ⇒ nil
Update/Create PureCloud Identity Provider.
-
#put_purecloud_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create PureCloud Identity Provider.
-
#put_salesforce(opts = {}) ⇒ nil
Update/Create Salesforce Identity Provider.
-
#put_salesforce_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create Salesforce Identity Provider.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
21 22 23 |
# File 'lib/purecloud/api/o_auth_api.rb', line 21 def api_client @api_client end |
Instance Method Details
#delete_clients_client_id(client_id, opts = {}) ⇒ nil
Delete OAuth Client
32 33 34 35 |
# File 'lib/purecloud/api/o_auth_api.rb', line 32 def delete_clients_client_id(client_id, opts = {}) delete_clients_client_id_with_http_info(client_id, opts) return nil end |
#delete_clients_client_id_with_http_info(client_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete OAuth Client
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/purecloud/api/o_auth_api.rb', line 42 def delete_clients_client_id_with_http_info(client_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#delete_clients_client_id ..." end # verify the required parameter 'client_id' is set fail "Missing the required parameter 'client_id' when calling delete_clients_client_id" if client_id.nil? # resource path local_var_path = "/api/v2/oauth/clients/{clientId}".sub('{format}','json').sub('{' + 'clientId' + '}', client_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#delete_clients_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_okta(opts = {}) ⇒ nil
Delete Okta Identity Provider
90 91 92 93 |
# File 'lib/purecloud/api/o_auth_api.rb', line 90 def delete_okta(opts = {}) delete_okta_with_http_info(opts) return nil end |
#delete_okta_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete Okta Identity Provider
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/purecloud/api/o_auth_api.rb', line 99 def delete_okta_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#delete_okta ..." end # resource path local_var_path = "/api/v2/identityproviders/okta".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#delete_okta\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_onelogin(opts = {}) ⇒ nil
Delete OneLogin Identity Provider
144 145 146 147 |
# File 'lib/purecloud/api/o_auth_api.rb', line 144 def delete_onelogin(opts = {}) delete_onelogin_with_http_info(opts) return nil end |
#delete_onelogin_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete OneLogin Identity Provider
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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/purecloud/api/o_auth_api.rb', line 153 def delete_onelogin_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#delete_onelogin ..." end # resource path local_var_path = "/api/v2/identityproviders/onelogin".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#delete_onelogin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_provider_id(opts = {}) ⇒ nil
Delete an identity provider
198 199 200 201 |
# File 'lib/purecloud/api/o_auth_api.rb', line 198 def delete_provider_id(opts = {}) delete_provider_id_with_http_info(opts) return nil end |
#delete_provider_id_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete an identity provider
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/purecloud/api/o_auth_api.rb', line 207 def delete_provider_id_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#delete_provider_id ..." end # resource path local_var_path = "/api/v2/identityproviders/{providerId}".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#delete_provider_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_purecloud(opts = {}) ⇒ nil
Delete PureCloud Identity Provider
252 253 254 255 |
# File 'lib/purecloud/api/o_auth_api.rb', line 252 def delete_purecloud(opts = {}) delete_purecloud_with_http_info(opts) return nil end |
#delete_purecloud_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete PureCloud Identity Provider
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/purecloud/api/o_auth_api.rb', line 261 def delete_purecloud_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#delete_purecloud ..." end # resource path local_var_path = "/api/v2/identityproviders/purecloud".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#delete_purecloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_salesforce(opts = {}) ⇒ nil
Delete Salesforce Identity Provider
306 307 308 309 |
# File 'lib/purecloud/api/o_auth_api.rb', line 306 def delete_salesforce(opts = {}) delete_salesforce_with_http_info(opts) return nil end |
#delete_salesforce_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete Salesforce Identity Provider
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 |
# File 'lib/purecloud/api/o_auth_api.rb', line 315 def delete_salesforce_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#delete_salesforce ..." end # resource path local_var_path = "/api/v2/identityproviders/salesforce".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#delete_salesforce\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_clients(opts = {}) ⇒ OAuthClientEntityListing
The list of OAuth clients
360 361 362 363 |
# File 'lib/purecloud/api/o_auth_api.rb', line 360 def get_clients(opts = {}) data, status_code, headers = get_clients_with_http_info(opts) return data end |
#get_clients_client_id(client_id, opts = {}) ⇒ OAuthClient
Get OAuth Client
416 417 418 419 |
# File 'lib/purecloud/api/o_auth_api.rb', line 416 def get_clients_client_id(client_id, opts = {}) data, status_code, headers = get_clients_client_id_with_http_info(client_id, opts) return data end |
#get_clients_client_id_with_http_info(client_id, opts = {}) ⇒ Array<(OAuthClient, Fixnum, Hash)>
Get OAuth Client
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 |
# File 'lib/purecloud/api/o_auth_api.rb', line 426 def get_clients_client_id_with_http_info(client_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_clients_client_id ..." end # verify the required parameter 'client_id' is set fail "Missing the required parameter 'client_id' when calling get_clients_client_id" if client_id.nil? # resource path local_var_path = "/api/v2/oauth/clients/{clientId}".sub('{format}','json').sub('{' + 'clientId' + '}', client_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'OAuthClient') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_clients_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_clients_with_http_info(opts = {}) ⇒ Array<(OAuthClientEntityListing, Fixnum, Hash)>
The list of OAuth clients
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 |
# File 'lib/purecloud/api/o_auth_api.rb', line 369 def get_clients_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_clients ..." end # resource path local_var_path = "/api/v2/oauth/clients".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'OAuthClientEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_identityproviders(opts = {}) ⇒ OAuthProviderEntityListing
The list of identity providers
475 476 477 478 |
# File 'lib/purecloud/api/o_auth_api.rb', line 475 def get_identityproviders(opts = {}) data, status_code, headers = get_identityproviders_with_http_info(opts) return data end |
#get_identityproviders_with_http_info(opts = {}) ⇒ Array<(OAuthProviderEntityListing, Fixnum, Hash)>
The list of identity providers
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 |
# File 'lib/purecloud/api/o_auth_api.rb', line 484 def get_identityproviders_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_identityproviders ..." end # resource path local_var_path = "/api/v2/identityproviders".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'OAuthProviderEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_identityproviders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_okta(opts = {}) ⇒ Okta
Get Okta Identity Provider
530 531 532 533 |
# File 'lib/purecloud/api/o_auth_api.rb', line 530 def get_okta(opts = {}) data, status_code, headers = get_okta_with_http_info(opts) return data end |
#get_okta_with_http_info(opts = {}) ⇒ Array<(Okta, Fixnum, Hash)>
Get Okta Identity Provider
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 |
# File 'lib/purecloud/api/o_auth_api.rb', line 539 def get_okta_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_okta ..." end # resource path local_var_path = "/api/v2/identityproviders/okta".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'Okta') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_okta\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_onelogin(opts = {}) ⇒ OneLogin
Get OneLogin Identity Provider
585 586 587 588 |
# File 'lib/purecloud/api/o_auth_api.rb', line 585 def get_onelogin(opts = {}) data, status_code, headers = get_onelogin_with_http_info(opts) return data end |
#get_onelogin_with_http_info(opts = {}) ⇒ Array<(OneLogin, Fixnum, Hash)>
Get OneLogin Identity Provider
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 |
# File 'lib/purecloud/api/o_auth_api.rb', line 594 def get_onelogin_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_onelogin ..." end # resource path local_var_path = "/api/v2/identityproviders/onelogin".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'OneLogin') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_onelogin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_provider_id(opts = {}) ⇒ OAuthProvider
Get an identity provider
640 641 642 643 |
# File 'lib/purecloud/api/o_auth_api.rb', line 640 def get_provider_id(opts = {}) data, status_code, headers = get_provider_id_with_http_info(opts) return data end |
#get_provider_id_with_http_info(opts = {}) ⇒ Array<(OAuthProvider, Fixnum, Hash)>
Get an identity provider
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/purecloud/api/o_auth_api.rb', line 649 def get_provider_id_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_provider_id ..." end # resource path local_var_path = "/api/v2/identityproviders/{providerId}".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'OAuthProvider') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_provider_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_purecloud(opts = {}) ⇒ PureCloud
Get PureCloud Identity Provider
695 696 697 698 |
# File 'lib/purecloud/api/o_auth_api.rb', line 695 def get_purecloud(opts = {}) data, status_code, headers = get_purecloud_with_http_info(opts) return data end |
#get_purecloud_with_http_info(opts = {}) ⇒ Array<(PureCloud, Fixnum, Hash)>
Get PureCloud Identity Provider
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 |
# File 'lib/purecloud/api/o_auth_api.rb', line 704 def get_purecloud_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_purecloud ..." end # resource path local_var_path = "/api/v2/identityproviders/purecloud".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'PureCloud') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_purecloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_salesforce(opts = {}) ⇒ Salesforce
Get Salesforce Identity Provider
750 751 752 753 |
# File 'lib/purecloud/api/o_auth_api.rb', line 750 def get_salesforce(opts = {}) data, status_code, headers = get_salesforce_with_http_info(opts) return data end |
#get_salesforce_with_http_info(opts = {}) ⇒ Array<(Salesforce, Fixnum, Hash)>
Get Salesforce Identity Provider
759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 |
# File 'lib/purecloud/api/o_auth_api.rb', line 759 def get_salesforce_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#get_salesforce ..." end # resource path local_var_path = "/api/v2/identityproviders/salesforce".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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 => 'Salesforce') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#get_salesforce\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_clients(opts = {}) ⇒ OAuthClient
Create OAuth client The OAuth Grant/Client is required in order to create an authentication token and gain access to PureCloud. nThe preferred authorizedGrantTypes is ‘CODE’ which requires applications to send a client ID and client secret. This is typically a web server. nIf the client is unable to secure the client secret then the ‘TOKEN’ grant type aka IMPLICIT should be used. This is would be for browser or mobile apps. nIf a client is to be used outside of the context of a user then the ‘CLIENT-CREDENTIALS’ grant may be used. In this case the client must be granted roles nvia the ‘roleIds’ field.
806 807 808 809 |
# File 'lib/purecloud/api/o_auth_api.rb', line 806 def post_clients(opts = {}) data, status_code, headers = post_clients_with_http_info(opts) return data end |
#post_clients_client_id_secret(client_id, opts = {}) ⇒ nil
Regenerate Client Secret This operation will set the client secret to a randomly generated cryptographically random value. All clients must be updated with the new secret. This operation should be used with caution.
863 864 865 866 |
# File 'lib/purecloud/api/o_auth_api.rb', line 863 def post_clients_client_id_secret(client_id, opts = {}) post_clients_client_id_secret_with_http_info(client_id, opts) return nil end |
#post_clients_client_id_secret_with_http_info(client_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Regenerate Client Secret This operation will set the client secret to a randomly generated cryptographically random value. All clients must be updated with the new secret. This operation should be used with caution.
873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 |
# File 'lib/purecloud/api/o_auth_api.rb', line 873 def post_clients_client_id_secret_with_http_info(client_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#post_clients_client_id_secret ..." end # verify the required parameter 'client_id' is set fail "Missing the required parameter 'client_id' when calling post_clients_client_id_secret" if client_id.nil? # resource path local_var_path = "/api/v2/oauth/clients/{clientId}/secret".sub('{format}','json').sub('{' + 'clientId' + '}', client_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#post_clients_client_id_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_clients_with_http_info(opts = {}) ⇒ Array<(OAuthClient, Fixnum, Hash)>
Create OAuth client The OAuth Grant/Client is required in order to create an authentication token and gain access to PureCloud. nThe preferred authorizedGrantTypes is 'CODE' which requires applications to send a client ID and client secret. This is typically a web server. nIf the client is unable to secure the client secret then the 'TOKEN' grant type aka IMPLICIT should be used. This is would be for browser or mobile apps. nIf a client is to be used outside of the context of a user then the 'CLIENT-CREDENTIALS' grant may be used. In this case the client must be granted roles nvia the 'roleIds' field.
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 |
# File 'lib/purecloud/api/o_auth_api.rb', line 816 def post_clients_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#post_clients ..." end # resource path local_var_path = "/api/v2/oauth/clients".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] 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 => 'OAuthClient') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#post_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_clients_client_id(client_id, opts = {}) ⇒ OAuthClient
Update OAuth Client
923 924 925 926 |
# File 'lib/purecloud/api/o_auth_api.rb', line 923 def put_clients_client_id(client_id, opts = {}) data, status_code, headers = put_clients_client_id_with_http_info(client_id, opts) return data end |
#put_clients_client_id_with_http_info(client_id, opts = {}) ⇒ Array<(OAuthClient, Fixnum, Hash)>
Update OAuth Client
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 |
# File 'lib/purecloud/api/o_auth_api.rb', line 934 def put_clients_client_id_with_http_info(client_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#put_clients_client_id ..." end # verify the required parameter 'client_id' is set fail "Missing the required parameter 'client_id' when calling put_clients_client_id" if client_id.nil? # resource path local_var_path = "/api/v2/oauth/clients/{clientId}".sub('{format}','json').sub('{' + 'clientId' + '}', client_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'OAuthClient') if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#put_clients_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_okta(opts = {}) ⇒ nil
Update/Create Okta Identity Provider
984 985 986 987 |
# File 'lib/purecloud/api/o_auth_api.rb', line 984 def put_okta(opts = {}) put_okta_with_http_info(opts) return nil end |
#put_okta_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create Okta Identity Provider
994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 |
# File 'lib/purecloud/api/o_auth_api.rb', line 994 def put_okta_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#put_okta ..." end # resource path local_var_path = "/api/v2/identityproviders/okta".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#put_okta\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_onelogin(opts = {}) ⇒ nil
Update/Create OneLogin Identity Provider
1040 1041 1042 1043 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1040 def put_onelogin(opts = {}) put_onelogin_with_http_info(opts) return nil end |
#put_onelogin_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create OneLogin Identity Provider
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1050 def put_onelogin_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#put_onelogin ..." end # resource path local_var_path = "/api/v2/identityproviders/onelogin".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#put_onelogin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_provider_id(opts = {}) ⇒ nil
Update an identity provider
1096 1097 1098 1099 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1096 def put_provider_id(opts = {}) put_provider_id_with_http_info(opts) return nil end |
#put_provider_id_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update an identity provider
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1106 def put_provider_id_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#put_provider_id ..." end # resource path local_var_path = "/api/v2/identityproviders/{providerId}".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#put_provider_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_purecloud(opts = {}) ⇒ nil
Update/Create PureCloud Identity Provider
1152 1153 1154 1155 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1152 def put_purecloud(opts = {}) put_purecloud_with_http_info(opts) return nil end |
#put_purecloud_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create PureCloud Identity Provider
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1162 def put_purecloud_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#put_purecloud ..." end # resource path local_var_path = "/api/v2/identityproviders/purecloud".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#put_purecloud\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_salesforce(opts = {}) ⇒ nil
Update/Create Salesforce Identity Provider
1208 1209 1210 1211 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1208 def put_salesforce(opts = {}) put_salesforce_with_http_info(opts) return nil end |
#put_salesforce_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update/Create Salesforce Identity Provider
1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 |
# File 'lib/purecloud/api/o_auth_api.rb', line 1218 def put_salesforce_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OAuthApi#put_salesforce ..." end # resource path local_var_path = "/api/v2/identityproviders/salesforce".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OAuthApi#put_salesforce\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |