(self, *, tokentype, tokenid1, tokenid2, tokendescription=None,
                 tokencustomset=None)
return self._return_proxy("tokenadd", cparams, uparams, options)
Usage::

            tokenadd tokentype={1|0} tokenid1={groupID} tokenid2={channelID}
                     [tokendescription={description}]
                     [tokencustomset={customFieldSet}]

        Create a new token. If tokentype is set to 0, the ID specified with tokenid1
        will be a server group ID. Otherwise, tokenid1 is used as a channel group ID
        and you need to provide a valid channel ID using tokenid2.

        The tokencustomset parameter allows you to specify a set of custom client
        properties. This feature can be used when generating tokens to combine a
        website account database with a TeamSpeak user. The syntax of the value
        needs to be escaped using the ServerQuery escape patterns and has to follow
        the general syntax of:

        ident=ident1 value=value1|ident=ident2 value=value2|ident=ident3 value=value3

        Example::

           tokenadd tokentype=0 tokenid1=6 tokenid2=0 tokendescription=Test
            tokencustomset=ident=forum_user\svalue=ScP\pident=forum_id\svalue=123
           token=eKnFZQ9EK7G7MhtuQB6+N2B1PNZZ6OZL3ycDp2OW
           error id=0 msg=ok

        Example::

            >>> ts3cmd.tokenadd(
            ...     tokentype=0, tokenid1=6, tokenid2=0,
            ...     tokendescription="Test",
            ...     tokencustomset="ident=forum_user\svalue=ScP\pident=forum_id\svalue=123"
            ...     )
            ...
Usage::
Usage ::
def tokenadd(self, *, tokentype, tokenid1, tokenid2, tokendescription=None,
                 tokencustomset=None):
        """
        Usage::

            tokenadd tokentype={1|0} tokenid1={groupID} tokenid2={channelID}
                     [tokendescription={description}]
                     [tokencustomset={customFieldSet}]

        Create a new token. If tokentype is set to 0, the ID specified with tokenid1
        will be a server group ID. Otherwise, tokenid1 is used as a channel group ID
        and you need to provide a valid channel ID using tokenid2.

        The tokencustomset parameter allows you to specify a set of custom client
        properties. This feature can be used when generating tokens to combine a
        website account database with a TeamSpeak user. The syntax of the value
        needs to be escaped using the ServerQuery escape patterns and has to follow
        the general syntax of:

        ident=ident1 value=value1|ident=ident2 value=value2|ident=ident3 value=value3

        Example::

           tokenadd tokentype=0 tokenid1=6 tokenid2=0 tokendescription=Test
            tokencustomset=ident=forum_user\svalue=ScP\pident=forum_id\svalue=123
           token=eKnFZQ9EK7G7MhtuQB6+N2B1PNZZ6OZL3ycDp2OW
           error id=0 msg=ok

        Example::

            >>> ts3cmd.tokenadd(
            ...     tokentype=0, tokenid1=6, tokenid2=0,
            ...     tokendescription="Test",
            ...     tokencustomset="ident=forum_user\svalue=ScP\pident=forum_id\svalue=123"
            ...     )
            ...
        """
        cparams = OrderedDict()
        uparams = list()
        options = list()

        cparams["tokentype"] = tokentype
        cparams["tokenid1"] = tokenid1
        cparams["tokenid2"] = tokenid2
        cparams["tokendescription"] = tokendescription
        cparams["tokencustomset"] = tokencustomset
        return self._return_proxy("tokenadd", cparams, uparams, options)
def tokenadd ( self , * , tokentype , tokenid1 , tokenid2 , tokendescription = None , tokencustomset = None ) : cparams = OrderedDict ( ) uparams = list ( ) options = list ( ) cparams [ "tokentype" ] = tokentype cparams [ "tokenid1" ] = tokenid1 cparams [ "tokenid2" ] = tokenid2 cparams [ "tokendescription" ] = tokendescription cparams [ "tokencustomset" ] = tokencustomset return self . _return_proxy ( "tokenadd" , cparams , uparams , options )