Package dev.lavalink.youtube
Class RemotePoToken
java.lang.Object
dev.lavalink.youtube.RemotePoToken
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRemotePoToken(@NotNull String remoteUrl, @Nullable String password) Creates a remote pot client. -
Method Summary
Modifier and TypeMethodDescription@NotNull RemotePoToken.Resultgenerate(@NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @Nullable String contentBinding) Generates a pot for the given content binding.
-
Constructor Details
-
RemotePoToken
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.
-