GithubHelp home page GithubHelp logo

spotify_api's Introduction

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.

spotify_api's People

Contributors

marc-r2 avatar

Watchers

 avatar

spotify_api's Issues

Define CONTRIBUTING.md

Generally speaking, any contribution is welcome as long as it helps the project along.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.