dart_plex_api 0.1.0 copy "dart_plex_api: ^0.1.0" to clipboard
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("/");
}
3
likes
30
pub points
0%
popularity

Publisher

unverified uploader

An unofficial wrapper for the plex web api.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

http, meta

More

Packages that depend on dart_plex_api