Hello I need to build a custom rest API tap where ...
# singer-tap-development
h
Hello I need to build a custom rest API tap where I need to revoke token after processing.how do I build that with meltano SDK..any thoughts on this?
r
Override invoke for your tap class and add your token revoke logic there?
Copy code
@classmethod
    def invoke(
        cls: type[Tap],
        *,
        about: bool = False,
        about_format: str | None = None,
        config: tuple[str, ...] = (),
        state: str | None = None,
        catalog: str | None = None,
    ) -> None:
        super().invoke(
            about=about,
            about_format=about_format,
            config=config,
            state=state,
            catalog=catalog,
        )

        # revoke logic
h
Thanks for the advice..will look up on this!