dart_plex_api 0.1.0 dart_plex_api: ^0.1.0 copied to clipboard
An unofficial wrapper for the plex web api.
example/dart_plex_api_example.dart
import 'package:dart_plex_api/dart_plex_api.dart';
main() async {
PlexCredentials credentials = PlexCredentials(
username: "<USERNAME>",
password: "<PASSWORD>",
);
PlexHeaders headers = PlexHeaders(
clientIdentifier: "Plex Dart Client",
);
PlexConnection connection = await PlexConnection(
host: "127.0.0.1",
port: 32400,
credentials: credentials,
headers: headers,
).authorize();
// Returns an http [Response] object
await connection.requestRaw("/");
}