| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple interface with the Spotify Web Api in Dart.
Login to the Spotify Developer Dashboard and create a new app. You will need the Client ID and Client Secret to use this package.
Add the package to your pubspec.yaml file:
dependencies:
spotify_api:
git:
url: https://github.com/Marc-R2/spotify_api.gitThere may be a warning regarding the publishing, as the package is currently still included via GitHub. However, the following can also be added to pubspec.yaml:
publish_to: 'none'Aim to publish on pub.dev in the future.
Auth with the Spotify Web Api and get an access token:
final spotifyAuth = SpotifyApiAuth(
clientId: 'Your Client ID',
clientSecret: 'Your Client Secret',
redirectUri: 'Your Redirect URI',
);
await spotifyAuth.openAuthUri(SpotifyApiScopes.all);
final auth = await spotifyAuth.getAccessToken();
final api = SpotifyApi(auth: auth!);TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.
| Back | FazBrowse Home | New Git URL |