Class: PureCloud::GreetingsApi
- Inherits:
-
Object
- Object
- PureCloud::GreetingsApi
- Defined in:
- lib/purecloudplatformclientv2/api/greetings_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_greeting(greeting_id, opts = {}) ⇒ nil
Deletes a Greeting with the given GreetingId.
-
#delete_greeting_with_http_info(greeting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Deletes a Greeting with the given GreetingId.
-
#get_greeting(greeting_id, opts = {}) ⇒ Greeting
Get a Greeting with the given GreetingId.
-
#get_greeting_media(greeting_id, opts = {}) ⇒ GreetingMediaInfo
Get media playback URI for this greeting.
-
#get_greeting_media_with_http_info(greeting_id, opts = {}) ⇒ Array<(GreetingMediaInfo, Fixnum, Hash)>
Get media playback URI for this greeting.
-
#get_greeting_with_http_info(greeting_id, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Get a Greeting with the given GreetingId.
-
#get_greetings(opts = {}) ⇒ DomainEntityListing
Gets an Organization’s Greetings.
-
#get_greetings_defaults(opts = {}) ⇒ DefaultGreetingList
Get an Organization’s DefaultGreetingList.
-
#get_greetings_defaults_with_http_info(opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Get an Organization's DefaultGreetingList.
-
#get_greetings_with_http_info(opts = {}) ⇒ Array<(DomainEntityListing, Fixnum, Hash)>
Gets an Organization's Greetings.
-
#get_group_greetings(group_id, opts = {}) ⇒ GreetingListing
Get a list of the Group’s Greetings.
-
#get_group_greetings_defaults(group_id, opts = {}) ⇒ DefaultGreetingList
Grabs the list of Default Greetings given a Group’s ID.
-
#get_group_greetings_defaults_with_http_info(group_id, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Grabs the list of Default Greetings given a Group's ID.
-
#get_group_greetings_with_http_info(group_id, opts = {}) ⇒ Array<(GreetingListing, Fixnum, Hash)>
Get a list of the Group's Greetings.
-
#get_user_greetings(user_id, opts = {}) ⇒ DomainEntityListing
Get a list of the User’s Greetings.
-
#get_user_greetings_defaults(user_id, opts = {}) ⇒ DefaultGreetingList
Grabs the list of Default Greetings given a User’s ID.
-
#get_user_greetings_defaults_with_http_info(user_id, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Grabs the list of Default Greetings given a User's ID.
-
#get_user_greetings_with_http_info(user_id, opts = {}) ⇒ Array<(DomainEntityListing, Fixnum, Hash)>
Get a list of the User's Greetings.
-
#initialize(api_client = ApiClient.default) ⇒ GreetingsApi
constructor
A new instance of GreetingsApi.
-
#post_greetings(body, opts = {}) ⇒ DefaultGreetingList
Create a Greeting for an Organization.
-
#post_greetings_with_http_info(body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Create a Greeting for an Organization.
-
#post_group_greetings(group_id, body, opts = {}) ⇒ Greeting
Creates a Greeting for a Group.
-
#post_group_greetings_with_http_info(group_id, body, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Creates a Greeting for a Group.
-
#post_user_greetings(user_id, body, opts = {}) ⇒ Greeting
Creates a Greeting for a User.
-
#post_user_greetings_with_http_info(user_id, body, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Creates a Greeting for a User.
-
#put_greeting(greeting_id, body, opts = {}) ⇒ Greeting
Updates the Greeting with the given GreetingId.
-
#put_greeting_with_http_info(greeting_id, body, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Updates the Greeting with the given GreetingId.
-
#put_greetings_defaults(body, opts = {}) ⇒ DefaultGreetingList
Update an Organization’s DefaultGreetingList.
-
#put_greetings_defaults_with_http_info(body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Update an Organization's DefaultGreetingList.
-
#put_group_greetings_defaults(group_id, body, opts = {}) ⇒ DefaultGreetingList
Updates the DefaultGreetingList of the specified Group.
-
#put_group_greetings_defaults_with_http_info(group_id, body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Updates the DefaultGreetingList of the specified Group.
-
#put_user_greetings_defaults(user_id, body, opts = {}) ⇒ DefaultGreetingList
Updates the DefaultGreetingList of the specified User.
-
#put_user_greetings_defaults_with_http_info(user_id, body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Updates the DefaultGreetingList of the specified User.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ GreetingsApi
Returns a new instance of GreetingsApi.
23 24 25 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 23 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
21 22 23 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 21 def api_client @api_client end |
Instance Method Details
#delete_greeting(greeting_id, opts = {}) ⇒ nil
Deletes a Greeting with the given GreetingId
32 33 34 35 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 32 def delete_greeting(greeting_id, opts = {}) delete_greeting_with_http_info(greeting_id, opts) return nil end |
#delete_greeting_with_http_info(greeting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Deletes a Greeting with the given GreetingId
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 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 42 def delete_greeting_with_http_info(greeting_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.delete_greeting ..." end # verify the required parameter 'greeting_id' is set fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.delete_greeting" if greeting_id.nil? # resource path local_var_path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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: GreetingsApi#delete_greeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_greeting(greeting_id, opts = {}) ⇒ Greeting
Get a Greeting with the given GreetingId
88 89 90 91 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 88 def get_greeting(greeting_id, opts = {}) data, _status_code, _headers = get_greeting_with_http_info(greeting_id, opts) return data end |
#get_greeting_media(greeting_id, opts = {}) ⇒ GreetingMediaInfo
Get media playback URI for this greeting
146 147 148 149 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 146 def get_greeting_media(greeting_id, opts = {}) data, _status_code, _headers = get_greeting_media_with_http_info(greeting_id, opts) return data end |
#get_greeting_media_with_http_info(greeting_id, opts = {}) ⇒ Array<(GreetingMediaInfo, Fixnum, Hash)>
Get media playback URI for this greeting
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 193 194 195 196 197 198 199 200 201 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 157 def get_greeting_media_with_http_info(greeting_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_greeting_media ..." end # verify the required parameter 'greeting_id' is set fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.get_greeting_media" if greeting_id.nil? if opts[:'format_id'] && !['WAV', 'WEBM', 'WAV_ULAW', 'OGG_VORBIS', 'OGG_OPUS', 'NONE'].include?(opts[:'format_id']) fail ArgumentError, 'invalid value for "format_id", must be one of WAV, WEBM, WAV_ULAW, OGG_VORBIS, OGG_OPUS, NONE' end # resource path local_var_path = "/api/v2/greetings/{greetingId}/media".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} query_params[:'formatId'] = opts[:'format_id'] if opts[:'format_id'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'GreetingMediaInfo') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_greeting_media\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_greeting_with_http_info(greeting_id, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Get a Greeting with the given GreetingId
98 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/purecloudplatformclientv2/api/greetings_api.rb', line 98 def get_greeting_with_http_info(greeting_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_greeting ..." end # verify the required parameter 'greeting_id' is set fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.get_greeting" if greeting_id.nil? # resource path local_var_path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'Greeting') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_greeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_greetings(opts = {}) ⇒ DomainEntityListing
Gets an Organization’s Greetings
209 210 211 212 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 209 def get_greetings(opts = {}) data, _status_code, _headers = get_greetings_with_http_info(opts) return data end |
#get_greetings_defaults(opts = {}) ⇒ DefaultGreetingList
Get an Organization’s DefaultGreetingList
266 267 268 269 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 266 def get_greetings_defaults(opts = {}) data, _status_code, _headers = get_greetings_defaults_with_http_info(opts) return data end |
#get_greetings_defaults_with_http_info(opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Get an Organization's DefaultGreetingList
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 301 302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 275 def get_greetings_defaults_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_greetings_defaults ..." end # resource path local_var_path = "/api/v2/greetings/defaults".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'DefaultGreetingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_greetings_with_http_info(opts = {}) ⇒ Array<(DomainEntityListing, Fixnum, Hash)>
Gets an Organization's Greetings
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 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 220 def get_greetings_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_greetings ..." end # resource path local_var_path = "/api/v2/greetings".sub('{format}','json') # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'DomainEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_group_greetings(group_id, opts = {}) ⇒ GreetingListing
Get a list of the Group’s Greetings
322 323 324 325 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 322 def get_group_greetings(group_id, opts = {}) data, _status_code, _headers = get_group_greetings_with_http_info(group_id, opts) return data end |
#get_group_greetings_defaults(group_id, opts = {}) ⇒ DefaultGreetingList
Grabs the list of Default Greetings given a Group’s ID
383 384 385 386 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 383 def get_group_greetings_defaults(group_id, opts = {}) data, _status_code, _headers = get_group_greetings_defaults_with_http_info(group_id, opts) return data end |
#get_group_greetings_defaults_with_http_info(group_id, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Grabs the list of Default Greetings given a Group's ID
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 393 def get_group_greetings_defaults_with_http_info(group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_group_greetings_defaults ..." end # verify the required parameter 'group_id' is set fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.get_group_greetings_defaults" if group_id.nil? # resource path local_var_path = "/api/v2/groups/{groupId}/greetings/defaults".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'DefaultGreetingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_group_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_group_greetings_with_http_info(group_id, opts = {}) ⇒ Array<(GreetingListing, Fixnum, Hash)>
Get a list of the Group's Greetings
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 334 def get_group_greetings_with_http_info(group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_group_greetings ..." end # verify the required parameter 'group_id' is set fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.get_group_greetings" if group_id.nil? # resource path local_var_path = "/api/v2/groups/{groupId}/greetings".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'GreetingListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_group_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_user_greetings(user_id, opts = {}) ⇒ DomainEntityListing
Get a list of the User’s Greetings
442 443 444 445 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 442 def get_user_greetings(user_id, opts = {}) data, _status_code, _headers = get_user_greetings_with_http_info(user_id, opts) return data end |
#get_user_greetings_defaults(user_id, opts = {}) ⇒ DefaultGreetingList
Grabs the list of Default Greetings given a User’s ID
503 504 505 506 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 503 def get_user_greetings_defaults(user_id, opts = {}) data, _status_code, _headers = get_user_greetings_defaults_with_http_info(user_id, opts) return data end |
#get_user_greetings_defaults_with_http_info(user_id, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Grabs the list of Default Greetings given a User's ID
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 513 def get_user_greetings_defaults_with_http_info(user_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_user_greetings_defaults ..." end # verify the required parameter 'user_id' is set fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.get_user_greetings_defaults" if user_id.nil? # resource path local_var_path = "/api/v2/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'DefaultGreetingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_user_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_user_greetings_with_http_info(user_id, opts = {}) ⇒ Array<(DomainEntityListing, Fixnum, Hash)>
Get a list of the User's Greetings
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 454 def get_user_greetings_with_http_info(user_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.get_user_greetings ..." end # verify the required parameter 'user_id' is set fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.get_user_greetings" if user_id.nil? # resource path local_var_path = "/api/v2/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_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 => 'DomainEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#get_user_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_greetings(body, opts = {}) ⇒ DefaultGreetingList
Create a Greeting for an Organization
560 561 562 563 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 560 def post_greetings(body, opts = {}) data, _status_code, _headers = post_greetings_with_http_info(body, opts) return data end |
#post_greetings_with_http_info(body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Create a Greeting for an Organization
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 570 def post_greetings_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.post_greetings ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.post_greetings" if body.nil? # resource path local_var_path = "/api/v2/greetings".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(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 => 'DefaultGreetingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#post_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_group_greetings(group_id, body, opts = {}) ⇒ Greeting
Creates a Greeting for a Group
618 619 620 621 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 618 def post_group_greetings(group_id, body, opts = {}) data, _status_code, _headers = post_group_greetings_with_http_info(group_id, body, opts) return data end |
#post_group_greetings_with_http_info(group_id, body, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Creates a Greeting for a Group
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 629 def post_group_greetings_with_http_info(group_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.post_group_greetings ..." end # verify the required parameter 'group_id' is set fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.post_group_greetings" if group_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.post_group_greetings" if body.nil? # resource path local_var_path = "/api/v2/groups/{groupId}/greetings".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(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 => 'Greeting') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#post_group_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_user_greetings(user_id, body, opts = {}) ⇒ Greeting
Creates a Greeting for a User
679 680 681 682 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 679 def post_user_greetings(user_id, body, opts = {}) data, _status_code, _headers = post_user_greetings_with_http_info(user_id, body, opts) return data end |
#post_user_greetings_with_http_info(user_id, body, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Creates a Greeting for a User
690 691 692 693 694 695 696 697 698 699 700 701 702 703 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 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 690 def post_user_greetings_with_http_info(user_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.post_user_greetings ..." end # verify the required parameter 'user_id' is set fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.post_user_greetings" if user_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.post_user_greetings" if body.nil? # resource path local_var_path = "/api/v2/users/{userId}/greetings".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(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 => 'Greeting') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#post_user_greetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_greeting(greeting_id, body, opts = {}) ⇒ Greeting
Updates the Greeting with the given GreetingId
740 741 742 743 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 740 def put_greeting(greeting_id, body, opts = {}) data, _status_code, _headers = put_greeting_with_http_info(greeting_id, body, opts) return data end |
#put_greeting_with_http_info(greeting_id, body, opts = {}) ⇒ Array<(Greeting, Fixnum, Hash)>
Updates the Greeting with the given GreetingId
751 752 753 754 755 756 757 758 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 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 751 def put_greeting_with_http_info(greeting_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.put_greeting ..." end # verify the required parameter 'greeting_id' is set fail ArgumentError, "Missing the required parameter 'greeting_id' when calling GreetingsApi.put_greeting" if greeting_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_greeting" if body.nil? # resource path local_var_path = "/api/v2/greetings/{greetingId}".sub('{format}','json').sub('{' + 'greetingId' + '}', greeting_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(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 => 'Greeting') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#put_greeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_greetings_defaults(body, opts = {}) ⇒ DefaultGreetingList
Update an Organization’s DefaultGreetingList
800 801 802 803 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 800 def put_greetings_defaults(body, opts = {}) data, _status_code, _headers = put_greetings_defaults_with_http_info(body, opts) return data end |
#put_greetings_defaults_with_http_info(body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Update an Organization's DefaultGreetingList
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 839 840 841 842 843 844 845 846 847 848 849 850 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 810 def put_greetings_defaults_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.put_greetings_defaults ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_greetings_defaults" if body.nil? # resource path local_var_path = "/api/v2/greetings/defaults".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(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 => 'DefaultGreetingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#put_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_group_greetings_defaults(group_id, body, opts = {}) ⇒ DefaultGreetingList
Updates the DefaultGreetingList of the specified Group
858 859 860 861 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 858 def put_group_greetings_defaults(group_id, body, opts = {}) data, _status_code, _headers = put_group_greetings_defaults_with_http_info(group_id, body, opts) return data end |
#put_group_greetings_defaults_with_http_info(group_id, body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Updates the DefaultGreetingList of the specified Group
869 870 871 872 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 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 869 def put_group_greetings_defaults_with_http_info(group_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.put_group_greetings_defaults ..." end # verify the required parameter 'group_id' is set fail ArgumentError, "Missing the required parameter 'group_id' when calling GreetingsApi.put_group_greetings_defaults" if group_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_group_greetings_defaults" if body.nil? # resource path local_var_path = "/api/v2/groups/{groupId}/greetings/defaults".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(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 => 'DefaultGreetingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#put_group_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_user_greetings_defaults(user_id, body, opts = {}) ⇒ DefaultGreetingList
Updates the DefaultGreetingList of the specified User
919 920 921 922 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 919 def put_user_greetings_defaults(user_id, body, opts = {}) data, _status_code, _headers = put_user_greetings_defaults_with_http_info(user_id, body, opts) return data end |
#put_user_greetings_defaults_with_http_info(user_id, body, opts = {}) ⇒ Array<(DefaultGreetingList, Fixnum, Hash)>
Updates the DefaultGreetingList of the specified User
930 931 932 933 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 |
# File 'lib/purecloudplatformclientv2/api/greetings_api.rb', line 930 def put_user_greetings_defaults_with_http_info(user_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GreetingsApi.put_user_greetings_defaults ..." end # verify the required parameter 'user_id' is set fail ArgumentError, "Missing the required parameter 'user_id' when calling GreetingsApi.put_user_greetings_defaults" if user_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling GreetingsApi.put_user_greetings_defaults" if body.nil? # resource path local_var_path = "/api/v2/users/{userId}/greetings/defaults".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(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 => 'DefaultGreetingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: GreetingsApi#put_user_greetings_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |