Class RemotePoToken

java.lang.Object
dev.lavalink.youtube.RemotePoToken

public final class RemotePoToken extends Object
  • Constructor Details

    • RemotePoToken

      public RemotePoToken(@NotNull @NotNull String remoteUrl, @Nullable @Nullable String password)
      Creates a remote pot client.
      Parameters:
      remoteUrl - base url of the webpo-generator service.
      password - oprional auth pass.
  • Method Details

    • generate

      @NotNull public @NotNull RemotePoToken.Result generate(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @Nullable @Nullable String contentBinding) throws IOException
      Generates a pot for the given content binding.
      Parameters:
      httpInterface - HTTP interface to use.
      contentBinding - videoId or visitorData, depending on the innertube client. If null, the remote service generates a visitor-bound token.
      Returns:
      The generated PoToken and the binding used by the remote service.
      Throws:
      IOException - only if the request fails or response is invalid.