spotify 0.0.3

spotify-dart

A dart library for interfacing with the Spotify API.

Usage

A simple usage example:

import 'package:spotify/spotify_io.dart';

main() {
  var credentials = new SpotifyApiCredentials(clientId, clientSecret);
  var spotify = new SpotifyApi(credentials);

  var artist = await spotify.artists.get('0OdUWJ0sBjDrqHygGUXeCF');
}

For usage in the browser use

import 'package:spotify/spotify_browser.dart';

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.0.3

  • add support for albums and artists
  • refactor code a little

0.0.1

  • Initial version

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  spotify: "^0.0.3"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:spotify/spotify_browser.dart';
import 'package:spotify/spotify_browser.json.g.dart';
import 'package:spotify/spotify_io.dart';
import 'package:spotify/spotify_io.json.g.dart';

About

A dart library for interfacing with the Spotify API.

Author

Email rinukkusu@auen.land rinukkusu

Homepage

github.com/rinukkusu/spotify-dart

Documentation

www.dartdocs.org/documentation/spotify/0.0.3/

Source code (hyperlinked)

www.crossdart.info/p/spotify/0.0.3/

Uploader

rinukkusu@srsfckn.biz

Published

Aug 13, 2017

Share