getServerID method

Future<String?> getServerID({
  1. required String hostname,
  2. required int port,
  3. bool? ssl,
  4. bool? remote,
})

Handler for get_server_id.

Get the Plex Media Server identifier.

Required Parameters:

  • hostname: IP address or domain of the Plex Media Server
  • port: Port that Plex Media Server is remotely accessible at

Optional Parameters:

  • ssl: Connect via a secure connection?
  • remote: Is the server remotely hosted?

Implementation

Future<String?> getServerID({
    required String hostname,
    required int port,
    bool? ssl,
    bool? remote,
}) async => _commandGetServerID(_client, hostname: hostname, port: port, ssl: ssl, remote: remote);