tmp/src/things/things.py
def getDraftThingTypes(self, parameters = None):
        """
        Retrieves all existing draft thing types.
        It accepts accepts an optional query parameters (Dictionary)
        In case of failure it throws APIException
        """
        draftThingTypesUrl = ApiClient.draftThingTypesUrl % (self.host)
        r = requests.get(draftThingTypesUrl, auth=self.credentials, params = parameters, verify=self.verify)
        status = r.status_code
        if status == 200:
            self.logger.debug("Draft thing types successfully retrieved")
            self.logger.debug(json.dumps(r.json()))
            return r.json()
        elif status == 401:
            raise ibmiotf.APIException(401, "The authentication token is empty or invalid", None)
        elif status == 403:
            raise ibmiotf.APIException(403, "The authentication method is invalid or the api key used does not exist", None)
        elif status == 500:
            raise ibmiotf.APIException(500, "Unexpected error", None)
        else:
            raise ibmiotf.APIException(None, "Unexpected error", None)
def getDraftThingTypes(self, parameters = None):
        """
        Retrieves all existing draft thing types.
        It accepts accepts an optional query parameters (Dictionary)
        In case of failure it throws APIException
        """
        draftThingTypesUrl = ApiClient.draftThingTypesUrl % (self.host)
        r = requests.get(draftThingTypesUrl, auth=self.credentials, params = parameters, verify=self.verify)
        status = r.status_code
        if status == 200:
            self.logger.debug("Draft thing types successfully retrieved")
            self.logger.debug(json.dumps(r.json()))
            return r.json()
        elif status == 401:
            raise ibmiotf.APIException(401, "The authentication token is empty or invalid", None)
        elif status == 403:
            raise ibmiotf.APIException(403, "The authentication method is invalid or the api key used does not exist", None)
        elif status == 500:
            raise ibmiotf.APIException(500, "Unexpected error", None)
        else:
            raise ibmiotf.APIException(None, "Unexpected error", None)
Retrieves all existing draft thing types.
        It accepts accepts an optional query parameters (Dictionary)
        In case of failure it throws APIException