@@ -2393,14 +2393,15 @@ def get_outbound_campaigns(self, **kwargs):
23932393 :param str distribution_queue_id: Distribution queue ID
23942394 :param str edge_group_id: Edge group ID
23952395 :param str call_analysis_response_set_id: Call analysis response set ID
2396+ :param list[str] division_id: Division ID(s)
23962397 :param str sort_by: Sort by
23972398 :param str sort_order: Sort order
23982399 :return: CampaignEntityListing
23992400 If the method is called asynchronously,
24002401 returns the request thread.
24012402 """
24022403
2403- all_params = ['page_size' , 'page_number' , 'filter_type' , 'name' , 'id' , 'contact_list_id' , 'dnc_list_id' , 'distribution_queue_id' , 'edge_group_id' , 'call_analysis_response_set_id' , 'sort_by' , 'sort_order' ]
2404+ all_params = ['page_size' , 'page_number' , 'filter_type' , 'name' , 'id' , 'contact_list_id' , 'dnc_list_id' , 'distribution_queue_id' , 'edge_group_id' , 'call_analysis_response_set_id' , 'division_id' , ' sort_by' , 'sort_order' ]
24042405 all_params .append ('callback' )
24052406
24062407 params = locals ()
@@ -2439,6 +2440,8 @@ def get_outbound_campaigns(self, **kwargs):
24392440 query_params ['edgeGroupId' ] = params ['edge_group_id' ]
24402441 if 'call_analysis_response_set_id' in params :
24412442 query_params ['callAnalysisResponseSetId' ] = params ['call_analysis_response_set_id' ]
2443+ if 'division_id' in params :
2444+ query_params ['divisionId' ] = params ['division_id' ]
24422445 if 'sort_by' in params :
24432446 query_params ['sortBy' ] = params ['sort_by' ]
24442447 if 'sort_order' in params :
@@ -2476,6 +2479,84 @@ def get_outbound_campaigns(self, **kwargs):
24762479 callback = params .get ('callback' ))
24772480 return response
24782481
2482+ def get_outbound_campaigns_divisionview (self , campaign_id , ** kwargs ):
2483+ """
2484+ Get a basic Campaign information object
2485+ This returns a simplified version of a Campaign, consisting of name and division.
2486+
2487+ This method makes a synchronous HTTP request by default. To make an
2488+ asynchronous HTTP request, please define a `callback` function
2489+ to be invoked when receiving the response.
2490+ >>> def callback_function(response):
2491+ >>> pprint(response)
2492+ >>>
2493+ >>> thread = api.get_outbound_campaigns_divisionview(campaign_id, callback=callback_function)
2494+
2495+ :param callback function: The callback function
2496+ for asynchronous request. (optional)
2497+ :param str campaign_id: Campaign ID (required)
2498+ :return: CampaignDivisionView
2499+ If the method is called asynchronously,
2500+ returns the request thread.
2501+ """
2502+
2503+ all_params = ['campaign_id' ]
2504+ all_params .append ('callback' )
2505+
2506+ params = locals ()
2507+ for key , val in iteritems (params ['kwargs' ]):
2508+ if key not in all_params :
2509+ raise TypeError (
2510+ "Got an unexpected keyword argument '%s'"
2511+ " to method get_outbound_campaigns_divisionview" % key
2512+ )
2513+ params [key ] = val
2514+ del params ['kwargs' ]
2515+
2516+ # verify the required parameter 'campaign_id' is set
2517+ if ('campaign_id' not in params ) or (params ['campaign_id' ] is None ):
2518+ raise ValueError ("Missing the required parameter `campaign_id` when calling `get_outbound_campaigns_divisionview`" )
2519+
2520+
2521+ resource_path = '/api/v2/outbound/campaigns/divisionviews/{campaignId}' .replace ('{format}' , 'json' )
2522+ path_params = {}
2523+ if 'campaign_id' in params :
2524+ path_params ['campaignId' ] = params ['campaign_id' ]
2525+
2526+ query_params = {}
2527+
2528+ header_params = {}
2529+
2530+ form_params = []
2531+ local_var_files = {}
2532+
2533+ body_params = None
2534+
2535+ # HTTP header `Accept`
2536+ header_params ['Accept' ] = self .api_client .\
2537+ select_header_accept (['application/json' ])
2538+ if not header_params ['Accept' ]:
2539+ del header_params ['Accept' ]
2540+
2541+ # HTTP header `Content-Type`
2542+ header_params ['Content-Type' ] = self .api_client .\
2543+ select_header_content_type (['application/json' ])
2544+
2545+ # Authentication setting
2546+ auth_settings = ['PureCloud Auth' ]
2547+
2548+ response = self .api_client .call_api (resource_path , 'GET' ,
2549+ path_params ,
2550+ query_params ,
2551+ header_params ,
2552+ body = body_params ,
2553+ post_params = form_params ,
2554+ files = local_var_files ,
2555+ response_type = 'CampaignDivisionView' ,
2556+ auth_settings = auth_settings ,
2557+ callback = params .get ('callback' ))
2558+ return response
2559+
24792560 def get_outbound_campaigns_divisionviews (self , ** kwargs ):
24802561 """
24812562 Query a list of basic Campaign information objects
@@ -2495,14 +2576,15 @@ def get_outbound_campaigns_divisionviews(self, **kwargs):
24952576 :param int page_number: Page number
24962577 :param str filter_type: Filter type
24972578 :param str name: Name
2579+ :param list[str] id: id
24982580 :param str sort_by: Sort by
24992581 :param str sort_order: Sort order
25002582 :return: CampaignDivisionViewListing
25012583 If the method is called asynchronously,
25022584 returns the request thread.
25032585 """
25042586
2505- all_params = ['page_size' , 'page_number' , 'filter_type' , 'name' , 'sort_by' , 'sort_order' ]
2587+ all_params = ['page_size' , 'page_number' , 'filter_type' , 'name' , 'id' , ' sort_by' , 'sort_order' ]
25062588 all_params .append ('callback' )
25072589
25082590 params = locals ()
@@ -2529,6 +2611,8 @@ def get_outbound_campaigns_divisionviews(self, **kwargs):
25292611 query_params ['filterType' ] = params ['filter_type' ]
25302612 if 'name' in params :
25312613 query_params ['name' ] = params ['name' ]
2614+ if 'id' in params :
2615+ query_params ['id' ] = params ['id' ]
25322616 if 'sort_by' in params :
25332617 query_params ['sortBy' ] = params ['sort_by' ]
25342618 if 'sort_order' in params :
0 commit comments