Interface to the `NationStates Verification API
        <https://www.nationstates.net/pages/api.html#verification>`_.

        Parameters
        ----------
        checksum : str
            The user-supplied verification code.  Expires if the nation
            logs out, if it performs a significant in-game action such
            as moving regions or endorsing another nation, and after it
            is successfully verified.
        token : str
            A token specific to your service and the nation being verified.

        Returns
        -------
        an :class:`ApiQuery` of bool

def verify(self, checksum, *, token=None):
        """Interface to the `NationStates Verification API
        <https://www.nationstates.net/pages/api.html#verification>`_.

        Parameters
        ----------
        checksum : str
            The user-supplied verification code.  Expires if the nation
            logs out, if it performs a significant in-game action such
            as moving regions or endorsing another nation, and after it
            is successfully verified.
        token : str
            A token specific to your service and the nation being verified.

        Returns
        -------
        an :class:`ApiQuery` of bool
        """
        params = {'a': 'verify', 'checksum': checksum}
        if token:
            params['token'] = token
        # Needed so that we get output in xml, as opposed to
        # plain text. It doesn't actually matter what the
        # q param is, it's just important that it's not empty.
        @api_query('i_need_the_output_in_xml', **params)
        async def result(self, root):
            return bool(int(root.find('VERIFY').text))
        return result(self)