@@ -2995,6 +2995,177 @@ def get_outbound_dnclists(self, **kwargs):
29952995 callback = params .get ('callback' ))
29962996 return response
29972997
2998+ def get_outbound_event (self , event_id , ** kwargs ):
2999+ """
3000+ Get Dialer Event
3001+
3002+
3003+ This method makes a synchronous HTTP request by default. To make an
3004+ asynchronous HTTP request, please define a `callback` function
3005+ to be invoked when receiving the response.
3006+ >>> def callback_function(response):
3007+ >>> pprint(response)
3008+ >>>
3009+ >>> thread = api.get_outbound_event(event_id, callback=callback_function)
3010+
3011+ :param callback function: The callback function
3012+ for asynchronous request. (optional)
3013+ :param str event_id: Event Log ID (required)
3014+ :return: EventLog
3015+ If the method is called asynchronously,
3016+ returns the request thread.
3017+ """
3018+
3019+ all_params = ['event_id' ]
3020+ all_params .append ('callback' )
3021+
3022+ params = locals ()
3023+ for key , val in iteritems (params ['kwargs' ]):
3024+ if key not in all_params :
3025+ raise TypeError (
3026+ "Got an unexpected keyword argument '%s'"
3027+ " to method get_outbound_event" % key
3028+ )
3029+ params [key ] = val
3030+ del params ['kwargs' ]
3031+
3032+ # verify the required parameter 'event_id' is set
3033+ if ('event_id' not in params ) or (params ['event_id' ] is None ):
3034+ raise ValueError ("Missing the required parameter `event_id` when calling `get_outbound_event`" )
3035+
3036+
3037+ resource_path = '/api/v2/outbound/events/{eventId}' .replace ('{format}' , 'json' )
3038+ path_params = {}
3039+ if 'event_id' in params :
3040+ path_params ['eventId' ] = params ['event_id' ]
3041+
3042+ query_params = {}
3043+
3044+ header_params = {}
3045+
3046+ form_params = []
3047+ local_var_files = {}
3048+
3049+ body_params = None
3050+
3051+ # HTTP header `Accept`
3052+ header_params ['Accept' ] = self .api_client .\
3053+ select_header_accept (['application/json' ])
3054+ if not header_params ['Accept' ]:
3055+ del header_params ['Accept' ]
3056+
3057+ # HTTP header `Content-Type`
3058+ header_params ['Content-Type' ] = self .api_client .\
3059+ select_header_content_type (['application/json' ])
3060+
3061+ # Authentication setting
3062+ auth_settings = ['PureCloud Auth' ]
3063+
3064+ response = self .api_client .call_api (resource_path , 'GET' ,
3065+ path_params ,
3066+ query_params ,
3067+ header_params ,
3068+ body = body_params ,
3069+ post_params = form_params ,
3070+ files = local_var_files ,
3071+ response_type = 'EventLog' ,
3072+ auth_settings = auth_settings ,
3073+ callback = params .get ('callback' ))
3074+ return response
3075+
3076+ def get_outbound_events (self , ** kwargs ):
3077+ """
3078+ Query Event Logs
3079+
3080+
3081+ This method makes a synchronous HTTP request by default. To make an
3082+ asynchronous HTTP request, please define a `callback` function
3083+ to be invoked when receiving the response.
3084+ >>> def callback_function(response):
3085+ >>> pprint(response)
3086+ >>>
3087+ >>> thread = api.get_outbound_events(callback=callback_function)
3088+
3089+ :param callback function: The callback function
3090+ for asynchronous request. (optional)
3091+ :param int page_size: Page size
3092+ :param int page_number: Page number
3093+ :param str filter_type: Filter type
3094+ :param str category: Category
3095+ :param str level: Level
3096+ :param str sort_by: Sort by
3097+ :param str sort_order: Sort order
3098+ :return: DialerEventEntityListing
3099+ If the method is called asynchronously,
3100+ returns the request thread.
3101+ """
3102+
3103+ all_params = ['page_size' , 'page_number' , 'filter_type' , 'category' , 'level' , 'sort_by' , 'sort_order' ]
3104+ all_params .append ('callback' )
3105+
3106+ params = locals ()
3107+ for key , val in iteritems (params ['kwargs' ]):
3108+ if key not in all_params :
3109+ raise TypeError (
3110+ "Got an unexpected keyword argument '%s'"
3111+ " to method get_outbound_events" % key
3112+ )
3113+ params [key ] = val
3114+ del params ['kwargs' ]
3115+
3116+
3117+
3118+ resource_path = '/api/v2/outbound/events' .replace ('{format}' , 'json' )
3119+ path_params = {}
3120+
3121+ query_params = {}
3122+ if 'page_size' in params :
3123+ query_params ['pageSize' ] = params ['page_size' ]
3124+ if 'page_number' in params :
3125+ query_params ['pageNumber' ] = params ['page_number' ]
3126+ if 'filter_type' in params :
3127+ query_params ['filterType' ] = params ['filter_type' ]
3128+ if 'category' in params :
3129+ query_params ['category' ] = params ['category' ]
3130+ if 'level' in params :
3131+ query_params ['level' ] = params ['level' ]
3132+ if 'sort_by' in params :
3133+ query_params ['sortBy' ] = params ['sort_by' ]
3134+ if 'sort_order' in params :
3135+ query_params ['sortOrder' ] = params ['sort_order' ]
3136+
3137+ header_params = {}
3138+
3139+ form_params = []
3140+ local_var_files = {}
3141+
3142+ body_params = None
3143+
3144+ # HTTP header `Accept`
3145+ header_params ['Accept' ] = self .api_client .\
3146+ select_header_accept (['application/json' ])
3147+ if not header_params ['Accept' ]:
3148+ del header_params ['Accept' ]
3149+
3150+ # HTTP header `Content-Type`
3151+ header_params ['Content-Type' ] = self .api_client .\
3152+ select_header_content_type (['application/json' ])
3153+
3154+ # Authentication setting
3155+ auth_settings = ['PureCloud Auth' ]
3156+
3157+ response = self .api_client .call_api (resource_path , 'GET' ,
3158+ path_params ,
3159+ query_params ,
3160+ header_params ,
3161+ body = body_params ,
3162+ post_params = form_params ,
3163+ files = local_var_files ,
3164+ response_type = 'DialerEventEntityListing' ,
3165+ auth_settings = auth_settings ,
3166+ callback = params .get ('callback' ))
3167+ return response
3168+
29983169 def get_outbound_ruleset (self , rule_set_id , ** kwargs ):
29993170 """
30003171 Get a Rule Set by ID.
0 commit comments