opensubsonic_api 0.2.1 copy "opensubsonic_api: ^0.2.1" to clipboard
opensubsonic_api: ^0.2.1 copied to clipboard

opensubsonic_api.dart is a wrapper for the Subsonic API in Dart, with additional support for OpenSubsonic.

(Open)Subsonic API Wrapper For Dart #

opensubsonic_api.dart is a wrapper for the Subsonic API in Dart, with additional support for OpenSubsonic.

Goals #

This package focuses on music only; podcasts and videos have the lowest priority.

Usage #

Installation #

TODO

Define SubsonicApi #

final client = SubsonicApi(
  baseUrl: 'https://example.com', // or 'http://localhost:3000'
  auth: const SubsonicAuthModel(
    username: 'admin', // or any other username you use
    password: 'admin', // or your password
  ),
  debug: true,
);

final result = await client.api.getArtists();
print(result);

Note:

debug is used to pass the password directly to the server, and it should be used for testing purposes only.

The password can be either in clear text or hex-encoded with an "enc:" prefix. Since version 1.13.0, this should only be used for testing purposes.

When debug is set to false, the password will be hashed as md5(salt + password), where salt is a random string generated by the API server.

See the API documentation for more information.

0
likes
0
points
41
downloads

Publisher

verified publisherrankki.xyz

Weekly Downloads

opensubsonic_api.dart is a wrapper for the Subsonic API in Dart, with additional support for OpenSubsonic.

Repository (GitHub)
View/report issues

Topics

#subsonic

License

unknown (license)

Dependencies

crypto, dio, freezed_annotation, json_annotation, retrofit

More

Packages that depend on opensubsonic_api