Skip to content

Marc-R2/spotify_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple interface with the Spotify Web Api in Dart.

Features

  • Auth with the Spotify Web Api
    • Scopes
  • Access to the Spotify Web Api Endpoints
    • Albums
    • Artists
    • Audiobooks (not yet implemented)
    • Browse
    • Chapters (not yet implemented)
    • Episodes (not yet implemented)
    • Follow
    • Library
    • Markets
    • Personalization
    • Player
    • Playlists
    • Search
    • Shows (not yet implemented)
    • Tracks
    • Users

Getting started

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.git

There 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.

Usage

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!);

Additional information

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages