def generate_res_url(self, req_type, url_type = 0): app_info = conf.get_app_info() url_api_str = '' if url_type == 0: url_api_str = 'youtu/api' else: url_api_str = 'youtu/imageapi' return app_info['end_point'] + url_api_str + '/' + str(req_type)
def generate_res_url(self, req_type, url_type=0): app_info = conf.get_app_info() url_api_str = '' if url_type == 0: url_api_str = 'youtu/api' else: url_api_str = 'youtu/imageapi' return app_info['end_point'] + url_api_str + '/' + str(req_type)
def generate_res_url(self, req_type): app_info = conf.get_app_info() return app_info['end_point'] + str(req_type);