This method creates tokens that can be used by users who want to join the domain. 
            Tokens are automatically deleted after usage. 
            Only domain managers can create tokens.

def DomainTokensCreate(self, domain_id, amount):
        """
            This method creates tokens that can be used by users who want to join the domain. 
            Tokens are automatically deleted after usage. 
            Only domain managers can create tokens.
        """
        if self.__SenseApiCall__('/domains/{0}/tokens.json'.format(domain_id), 'POST', parameters = {"amount":amount}):
            return True
        else:
            self.__error__ = "api call unsuccessful"
            return False