def grant(self, auth, resource, permissions, ttl=None, defer=False):
args = [resource, permissions]<EOL>if ttl is not None:<EOL><INDENT>args.append({"<STR_LIT>": ttl})<EOL><DEDENT>return self._call('<STR_LIT>', auth, args, defer)<EOL>
Grant resources with specific permissions and return a token.

        Args:
            auth: <cik>
            resource: Alias or ID of resource.
            permissions: permissions of resources.
            ttl: Time To Live.