7878 from dataforseo_client .models .business_data_tripadvisor_reviews_task_post_response_info import BusinessDataTripadvisorReviewsTaskPostResponseInfo
7979 from dataforseo_client .models .business_data_tripadvisor_reviews_tasks_ready_response_info import BusinessDataTripadvisorReviewsTasksReadyResponseInfo
8080 from dataforseo_client .models .business_data_tripadvisor_reviews_task_get_response_info import BusinessDataTripadvisorReviewsTaskGetResponseInfo
81- from dataforseo_client .models .business_data_social_media_pinterest_live_request_info import BusinessDataSocialMediaPinterestLiveRequestInfo
82- from dataforseo_client .models .business_data_social_media_pinterest_live_response_info import BusinessDataSocialMediaPinterestLiveResponseInfo
8381
8482from dataforseo_client .api_client import ApiClient , RequestSerialized
8583from dataforseo_client .api_response import ApiResponse
@@ -9206,196 +9204,4 @@ def _tripadvisor_reviews_task_get_serialize(
92069204 collection_formats = _collection_formats ,
92079205 _host = _host ,
92089206 _request_auth = _request_auth
9209- )
9210-
9211- from dataforseo_client .models .business_data_social_media_pinterest_live_request_info import BusinessDataSocialMediaPinterestLiveRequestInfo
9212- from dataforseo_client .models .business_data_social_media_pinterest_live_response_info import BusinessDataSocialMediaPinterestLiveResponseInfo
9213- @validate_call
9214- def social_media_pinterest_live (
9215- self ,
9216- list_optional_business_data_social_media_pinterest_live_request_info : 'List[Optional[BusinessDataSocialMediaPinterestLiveRequestInfo]]' = None ,
9217- _request_timeout : Union [
9218- None ,
9219- Annotated [StrictFloat , Field (gt = 0 )],
9220- Tuple [
9221- Annotated [StrictFloat , Field (gt = 0 )],
9222- Annotated [StrictFloat , Field (gt = 0 )]
9223- ]
9224- ] = None ,
9225- _request_auth : Optional [Dict [StrictStr , Any ]] = None ,
9226- _content_type : Optional [StrictStr ] = None ,
9227- _headers : Optional [Dict [StrictStr , Any ]] = None ,
9228- _host_index : Annotated [StrictInt , Field (ge = 0 , le = 0 )] = 0 ,
9229- ) -> BusinessDataSocialMediaPinterestLiveResponseInfo :
9230-
9231- _param = self ._social_media_pinterest_live_serialize (
9232- list_optional_business_data_social_media_pinterest_live_request_info = list_optional_business_data_social_media_pinterest_live_request_info ,
9233- _request_auth = _request_auth ,
9234- _content_type = _content_type ,
9235- _headers = _headers ,
9236- _host_index = _host_index
9237- )
9238-
9239- _response_types_map : Dict [str , Optional [str ]] = {
9240- '200' : "BusinessDataSocialMediaPinterestLiveResponseInfo" ,
9241- }
9242- response_data = self .api_client .call_api (
9243- * _param ,
9244- _request_timeout = _request_timeout
9245- )
9246- response_data .read ()
9247- return self .api_client .response_deserialize (
9248- response_data = response_data ,
9249- response_types_map = _response_types_map ,
9250- ).data
9251-
9252-
9253-
9254- @validate_call
9255- def social_media_pinterest_live_with_http_info (
9256- self ,
9257- list_optional_business_data_social_media_pinterest_live_request_info : 'List[Optional[BusinessDataSocialMediaPinterestLiveRequestInfo]]' = None ,
9258- _request_timeout : Union [
9259- None ,
9260- Annotated [StrictFloat , Field (gt = 0 )],
9261- Tuple [
9262- Annotated [StrictFloat , Field (gt = 0 )],
9263- Annotated [StrictFloat , Field (gt = 0 )]
9264- ]
9265- ] = None ,
9266- _request_auth : Optional [Dict [StrictStr , Any ]] = None ,
9267- _content_type : Optional [StrictStr ] = None ,
9268- _headers : Optional [Dict [StrictStr , Any ]] = None ,
9269- _host_index : Annotated [StrictInt , Field (ge = 0 , le = 0 )] = 0 ,
9270- ) -> 'ApiResponse[BusinessDataSocialMediaPinterestLiveResponseInfo]' :
9271-
9272- _param = self ._social_media_pinterest_live_serialize (
9273- list_optional_business_data_social_media_pinterest_live_request_info = list_optional_business_data_social_media_pinterest_live_request_info ,
9274- _request_auth = _request_auth ,
9275- _content_type = _content_type ,
9276- _headers = _headers ,
9277- _host_index = _host_index
9278- )
9279-
9280- _response_types_map : Dict [str , Optional [str ]] = {
9281- '200' : "BusinessDataSocialMediaPinterestLiveResponseInfo" ,
9282- }
9283- response_data = self .api_client .call_api (
9284- * _param ,
9285- _request_timeout = _request_timeout
9286- )
9287- response_data .read ()
9288- return self .api_client .response_deserialize (
9289- response_data = response_data ,
9290- response_types_map = _response_types_map ,
9291- )
9292-
9293-
9294- @validate_call
9295- def social_media_pinterest_live_without_preload_content (
9296- self ,
9297- list_optional_business_data_social_media_pinterest_live_request_info : 'List[Optional[BusinessDataSocialMediaPinterestLiveRequestInfo]]' = None ,
9298- _request_timeout : Union [
9299- None ,
9300- Annotated [StrictFloat , Field (gt = 0 )],
9301- Tuple [
9302- Annotated [StrictFloat , Field (gt = 0 )],
9303- Annotated [StrictFloat , Field (gt = 0 )]
9304- ]
9305- ] = None ,
9306- _request_auth : Optional [Dict [StrictStr , Any ]] = None ,
9307- _content_type : Optional [StrictStr ] = None ,
9308- _headers : Optional [Dict [StrictStr , Any ]] = None ,
9309- _host_index : Annotated [StrictInt , Field (ge = 0 , le = 0 )] = 0 ,
9310- ) -> RESTResponseType :
9311-
9312- _param = self ._social_media_pinterest_live_serialize (
9313- list_optional_business_data_social_media_pinterest_live_request_info = list_optional_business_data_social_media_pinterest_live_request_info ,
9314- _request_auth = _request_auth ,
9315- _content_type = _content_type ,
9316- _headers = _headers ,
9317- _host_index = _host_index
9318- )
9319-
9320- _response_types_map : Dict [str , Optional [str ]] = {
9321- '200' : "BusinessDataSocialMediaPinterestLiveResponseInfo" ,
9322- }
9323- response_data = self .api_client .call_api (
9324- * _param ,
9325- _request_timeout = _request_timeout
9326- )
9327- return response_data .response
9328-
9329-
9330- def _social_media_pinterest_live_serialize (
9331- self ,
9332- list_optional_business_data_social_media_pinterest_live_request_info ,
9333- _request_auth ,
9334- _content_type ,
9335- _headers ,
9336- _host_index ,
9337- ) -> RequestSerialized :
9338-
9339- _host = None
9340-
9341- _collection_formats : Dict [str , str ] = {
9342- 'List[Optional[BusinessDataSocialMediaPinterestLiveRequestInfo]]' : '' ,
9343- }
9344-
9345- _path_params : Dict [str , str ] = {}
9346- _query_params : List [Tuple [str , str ]] = []
9347- _header_params : Dict [str , Optional [str ]] = _headers or {}
9348- _form_params : List [Tuple [str , str ]] = []
9349- _files : Dict [str , Union [str , bytes ]] = {}
9350- _body_params : Optional [bytes ] = None
9351-
9352- # process the path parameters
9353- # process the query parameters
9354- # process the header parameters
9355- # process the form parameters
9356- # process the body parameter
9357- if list_optional_business_data_social_media_pinterest_live_request_info is not None :
9358- _body_params = list_optional_business_data_social_media_pinterest_live_request_info
9359-
9360-
9361- # set the HTTP header `Accept`
9362- if 'Accept' not in _header_params :
9363- _header_params ['Accept' ] = self .api_client .select_header_accept (
9364- [
9365- 'application/json'
9366- ]
9367- )
9368-
9369- # set the HTTP header `Content-Type`
9370- if _content_type :
9371- _header_params ['Content-Type' ] = _content_type
9372- else :
9373- _default_content_type = (
9374- self .api_client .select_header_content_type (
9375- [
9376- 'application/json'
9377- ]
9378- )
9379- )
9380- if _default_content_type is not None :
9381- _header_params ['Content-Type' ] = _default_content_type
9382-
9383- # authentication setting
9384- _auth_settings : List [str ] = [
9385- 'basicAuth'
9386- ]
9387-
9388- return self .api_client .param_serialize (
9389- method = 'POST' ,
9390- resource_path = '/v3/business_data/social_media/pinterest/live' ,
9391- path_params = _path_params ,
9392- query_params = _query_params ,
9393- header_params = _header_params ,
9394- body = _body_params ,
9395- post_params = _form_params ,
9396- files = _files ,
9397- auth_settings = _auth_settings ,
9398- collection_formats = _collection_formats ,
9399- _host = _host ,
9400- _request_auth = _request_auth
94019207 )
0 commit comments