def get_task(cls, task_id, username, password):
     """
     :param username: <String> Username for
     :param password:
     :return:
     """
     raw_response = requests.get(url=config.API_URL+config.TASK_TAIL +
                                     str(task_id), auth=(username, password))
     return ResponseParser.get_task(raw_response)
    def get_task(cls, task_id, username, password):
        """

        :param username:
        :param password:
        :return:
        """

        raw_response = requests.get(url=API_URL+TASK_TAIL+str(task_id), auth=(username, password))
        return ResponseParser.get_task(raw_response)
예제 #3
0
	def get_task(cls, task_id, username, password):

		raw_response = requests.get(url=API_URL+TASK_TAIL+str(task_id), auth=(username, password))
		# print(r.status_code)
		# print(r.text)
		return ResponseParser.get_task(raw_response)