opensubsonic_api

Last updated:

0 purchases

opensubsonic_api Image
opensubsonic_api Images
Add to Cart

Description:

opensubsonic api

(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);
copied to clipboard

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.