def setUp(self):
        '''初始化请求数据url'''
        url = LiveAPIData.urlData(self)
        url = url + "/api/room/create?"
        data = LiveAPIData.createData(self)
        self.sql_data = LiveAPIData.insert_roomid
        self.create_data, self.create_all_data, self.create_white_data, self.bat_create_data = data[
            0], data[1], data[2], data[3]

        # 加密传输数据
        t = THQS.thqs()
        create_data = t.get_thqs(self.create_data)
        create_all_data = t.get_thqs(self.create_all_data)
        create_white_data = t.get_thqs(self.create_white_data)
        bat_create_data = t.get_thqs(self.bat_create_data)

        # 拼接请求url
        self.create_url = url + create_data
        self.createa_all_url = url + create_all_data
        self.create_white_url = url + create_white_data
        self.bat_create_url = url + bat_create_data
        self.live = LiveAPIRequests.LiveAPIRequests

        # 实例化写入TXT的模块
        self.with_roomid = withOpenDef.WithOpenDef()
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url+"/api/v1/doc/auth/list?"
     self.auth_data = LiveAPIData.authListData(self)
     t = THQS.thqs()
     auth_data = t.get_thqs(self.auth_data)
     self.auth_url = url+auth_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/live/chatmsg?"
     self.chatmsg_data = LiveAPIData.chatmsgData(self)
     t = THQS.thqs()
     chatmsg_data = t.get_thqs(self.chatmsg_data)
     self.chatmsg_url = url + chatmsg_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/v1/video/onrelated?"
     self.onrelated_data = LiveAPIData.onrelatedData(self)
     t = THQS.thqs()
     onrelated_data = t.get_thqs(self.onrelated_data)
     self.onrelated_url = url + onrelated_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/set_single?"
     self.setSingle_data = LiveAPIData.set_singleData(self)
     t = THQS.thqs()
     setSingle_data = t.get_thqs(self.setSingle_data)
     self.setSingle_url = url + setSingle_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/link?"
     self.link_data = LiveAPIData.linkData(self)
     t = THQS.thqs()
     link_data = t.get_thqs(self.link_data)
     self.link_url = url + link_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/v2/record/info?"
     self.record_data = LiveAPIData.recordData(self)
     t = THQS.thqs()
     record_data = t.get_thqs(self.record_data)
     self.record_url = url + record_data
     self.live = LiveAPIRequests.LiveAPIRequests
Esempio n. 8
0
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/close?"
     self.close_data = LiveAPIData.closeData(self)
     t = THQS.thqs()
     close_data = t.get_thqs(self.close_data)
     self.close_url = url + close_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url+"/api/v2/record/search?"
     self.search_data = LiveAPIData.searchData(self)
     t = THQS.thqs()
     search_data = t.get_thqs(self.search_data)
     self.search_url = url+search_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/v1/video/createuploadinfo?"
     self.create_upload_info_data = LiveAPIData.createuploadinfoData(self)
     t = THQS.thqs()
     create_upload_info_data = t.get_thqs(self.create_upload_info_data)
     self.create_info_url = url + create_upload_info_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url+"/api/v1/doc/unrelate?"
     self.unrelate_data = LiveAPIData.unrelateData(self)
     t = THQS.thqs()
     unrelate_data = t.get_thqs(self.unrelate_data)
     self.unrelate_url = url+unrelate_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url+"/api/v1/video/warm/set?"
     self.warm_set_data = LiveAPIData.warmSetData(self)
     t = THQS.thqs()
     warm_set_data = t.get_thqs(self.warm_set_data)
     self.warm_set_url = url+warm_set_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/room_detail?"
     self.detail_data = LiveAPIData.detailData(self)
     t = THQS.thqs()
     detail_data = t.get_thqs(self.detail_data)
     self.detail_url = url + detail_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/v1/video/relate?"
     self.video_relate_data = LiveAPIData.videoRelateData(self)
     t = THQS.thqs()
     video_relate_data = t.get_thqs(self.video_relate_data)
     self.video_relate_url = url + video_relate_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/v1/doc/list?"
     self.doc_list_data = LiveAPIData.docListData(self)
     t = THQS.thqs()
     doc_list_data = t.get_thqs(self.doc_list_data)
     self.doc_list_url = url + doc_list_data
     self.live = LiveAPIRequests.LiveAPIRequests
     self.doc_id = LiveAPIData.withDocIdData(self)
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url+"/api/v1/doc/add?"
     self.add_data = LiveAPIData.addData(self)
     t = THQS.thqs()
     add_data = t.get_thqs(self.add_data)
     self.add_url = url+add_data
     self.live = LiveAPIRequests.LiveAPIRequests
     self.with_docId = withOpenDef.WithOpenDef()
Esempio n. 17
0
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url+"/api/room/update?"
     data = LiveAPIData.updateData(self)
     self.update_data,self.bat_update_data = data[0],data[1]
     t = THQS.thqs()
     update_data = t.get_thqs(self.update_data)
     bat_update_data = t.get_thqs(self.bat_update_data)
     self.update_url = url+update_data
     self.bat_update_url = url+bat_update_data
     self.live = LiveAPIRequests.LiveAPIRequests
Esempio n. 18
0
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/live/stop?"
     data = LiveAPIData.stopData(self)
     self.stop_data, self.nouserid_data = data[0], data[1]
     t = THQS.thqs()
     stop_data = t.get_thqs(self.stop_data)
     nouserid_data = t.get_thqs(self.nouserid_data)
     self.stop_url = url + stop_data
     self.nouserid_url = url + nouserid_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/live/start?"
     data = LiveAPIData.startData(self)
     self.start_data = data[0]
     self.nouserid_data = data[1]
     t = THQS.thqs()
     start_data, nouserid_data = t.get_thqs(self.start_data), t.get_thqs(
         self.nouserid_data)
     self.start_url = url + start_data
     self.nouserid_url = url + nouserid_data
     self.live = LiveAPIRequests.LiveAPIRequests
     self.with_liveid = withOpenDef.WithOpenDef()
Esempio n. 20
0
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/list?"
     data = LiveAPIData.listData(self)
     self.list_data, self.list_all_data, self.list_bat_data = data[0], data[
         1], data[2]
     t = THQS.thqs()
     list_data = t.get_thqs(self.list_data)
     list_all_data = t.get_thqs(self.list_all_data)
     list_bat_data = t.get_thqs(self.list_bat_data)
     self.list_url = url + list_data
     self.list_all_url = url + list_all_data
     self.list_bat_url = url + list_bat_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def setUp(self):
     url = "http://api.csslcloud.net/api/room/update?"
     updata_data = LiveAPIData.updataData(self)
     t = THQS.thqs()
     self.updata_data = t.get_thqs(updata_data)
     self.updata_url = url + self.updata_data
     self.live = LiveAPIRequests.LiveAPIRequests
 def __init__(self):
     self.url = 'http://api.csslcloud.net/api/rooms/publishing?'
     dataList = LiveAPIData.publiShingData(self)
     check_data = dataList[0]
     t = THQS.thqs()
     check_data = t.get_thqs(check_data)
     self.check_url = self.url + check_data
     self.live = LiveAPIRequests.LiveAPIRequests
    def setUp(self):
        url = "http://api.csslcloud.net/api/live/rollcall/viewers?"

        viewers_data = LiveAPIData.viewersData(self)
        t = THQS.thqs()

        self.viewers_data1 = t.get_thqs(viewers_data)
        self.viewers_url1 = url + self.viewers_data1

        self.live = LiveAPIRequests.LiveAPIRequests
    def setUp(self):
        url = "http://api.csslcloud.net/api/rooms/broadcasting?"

        broad_data = LiveAPIData.broadcastingData(self)
        t = THQS.thqs()

        self.broad_data = t.get_thqs(broad_data)
        self.broad_url = url + self.broad_data

        self.live = LiveAPIRequests.LiveAPIRequests
    def setUp(self):
        url = "http://api.csslcloud.net/api/v2/record/info?"
        liveinfo_data = LiveAPIData.recoridData(self)
        self.roomid = liveinfo_data['roomid']
        t = THQS.thqs()
        self.liveinfo_data = t.get_thqs(liveinfo_data)
        self.liveinfo_url = url + self.liveinfo_data
        self.live = LiveAPIRequests.LiveAPIRequests

        self.sql = SQLData.SQLData()
Esempio n. 26
0
    def setUp(self):
        url = "http://api.csslcloud.net/api/v2/record/search?"
        recordid_data = LiveAPIData.recoridSearchData(self)
        self.recordid = recordid_data['recordid']
        t = THQS.thqs()
        self.recordid_data = t.get_thqs(recordid_data)
        self.recordid_url = url + self.recordid_data
        self.live = LiveAPIRequests.LiveAPIRequests

        self.sql = SQLData.SQLData()
    def setUp(self):
        url = "http://api.csslcloud.net/api/live/questionnaire/viewers?"

        qViewers_data = LiveAPIData.qViewersData(self)
        t = THQS.thqs()

        self.qViewers_data= t.get_thqs(qViewers_data)
        self.qViewers_url1 = url + self.qViewers_data

        self.live = LiveAPIRequests.LiveAPIRequests
    def setUp(self):
        url = "http://api.csslcloud.net/api/viewtemplate/info?"

        viewtemplate_data = LiveAPIData.viewtemplateData(self)
        t = THQS.thqs()

        self.viewtemplate_data = t.get_thqs(viewtemplate_data)
        self.static_url1 = url + self.viewtemplate_data

        self.live = LiveAPIRequests.LiveAPIRequests
    def setUp(self):
        url = "http://api.csslcloud.net/api/statis/connections?"

        static_data = LiveAPIData.staticData(self)
        t = THQS.thqs()


        self.static_data1,self.static_data2= t.get_thqs(static_data[0]),t.get_thqs(static_data[1])
        self.static_url1 = url + self.static_data1
        self.static_url2 = url + self.static_data2
        self.live = LiveAPIRequests.LiveAPIRequests
Esempio n. 30
0
 def setUp(self):
     '''初始化请求数据url'''
     url = LiveAPIData.urlData(self)
     url = url + "/api/room/create/sessionid?"
     data = LiveAPIData.sessionidData(self)
     t = THQS.thqs()
     # 拆分获得的数组赋值给变量
     self.role0_data, self.role1_data, self.role2_data, self.client_data = data[
         0], data[1], data[2], data[3]
     self.bat_data = data[4]
     # 分别加密
     role0_data = t.get_thqs(self.role0_data)
     role1_data = t.get_thqs(self.role1_data)
     role2_data = t.get_thqs(self.role2_data)
     client_data = t.get_thqs(self.client_data)
     bat_data = t.get_thqs(self.bat_data)
     self.role0_url, self.role1_url, self.role2_url = url + role0_data, url + role1_data, url + role2_data
     self.client_url = url + client_data
     self.bat_url = url + bat_data
     self.live = LiveAPIRequests.LiveAPIRequests