spotify 0.0.7

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 48

spotify-dart Pub Build Status

A dart library for interfacing with the Spotify API.

Usage

A simple usage example:

import 'package:spotify/spotify_io.dart';

main() async {
  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.7

  • add user's saved tracks endpoints

0.0.6

  • add pagination support

0.0.5

  • add user and playlist endpoints

0.0.4

  • fix typo in artists endpoint
  • add basic unit tests

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

2. Install it

You can install packages from the command line:

with pub:


$ 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';
        
Version Uploaded Documentation Archive
0.0.7 Feb 10, 2018 Go to the documentation of spotify 0.0.7 Download spotify 0.0.7 archive
0.0.6 Oct 15, 2017 Go to the documentation of spotify 0.0.6 Download spotify 0.0.6 archive
0.0.5 Oct 14, 2017 Go to the documentation of spotify 0.0.5 Download spotify 0.0.5 archive
0.0.4 Oct 12, 2017 Go to the documentation of spotify 0.0.4 Download spotify 0.0.4 archive
0.0.3 Aug 13, 2017 Go to the documentation of spotify 0.0.3 Download spotify 0.0.3 archive
0.0.2 Aug 12, 2017 Go to the documentation of spotify 0.0.2 Download spotify 0.0.2 archive
0.0.1 Aug 12, 2017 Go to the documentation of spotify 0.0.1 Download spotify 0.0.1 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
45 / 100
Health:
Code health derived from static analysis. [more]
41 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
64 / 100
Overall score:
Weighted score of the above. [more]
48
Learn more about scoring.

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Error(s) in lib/spotify_io.json.g.dart: The method tear-off 'parse' has type '(Map<String, dynamic>) → Image' that isn't of expected type '(dynamic) → Image'. This means its parameter or return type does not match what is expected.

Suggestions

  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Error(s) in lib/spotify_io.json.g.dart: The method tear-off 'parse' has type '(Map<String, dynamic>) → Image' that isn't of expected type '(dynamic) → Image'. This means its parameter or return type does not match what is expected.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 29 errors 118 hints.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/spotify_browser.json.g.dart: The method tear-off 'parse' has type '(Map<String, dynamic>) → Image' that isn't of expected type '(dynamic) → Image'. This means its parameter or return type does not match what is expected.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/spotify_io.json.g.dart: The method tear-off 'parse' has type '(Map<String, dynamic>) → Image' that isn't of expected type '(dynamic) → Image'. This means its parameter or return type does not match what is expected.

    Similar analysis of the following files failed:

    • lib/src/spotify_mock.dart (error)
    • lib/src/endpoints/albums.dart (hint)
    • lib/src/endpoints/artists.dart (hint)
    • lib/src/endpoints/audio_features.dart (hint)
    • lib/src/endpoints/endpoint_paging.dart (hint)
    • lib/src/endpoints/playlists.dart (hint)
    • lib/src/endpoints/tracks.dart (hint)
    • lib/src/endpoints/users.dart (hint)
    • lib/src/models/error.dart (hint)
    • lib/src/models/playlist.dart (hint)
    • lib/src/models/token_request.json.g.dart (hint)
    • lib/src/spotify_base.dart (hint)
    • lib/src/spotify_browser.dart (hint)
    • lib/src/spotify_credentials.dart (hint)
    • lib/src/spotify_io.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use spotify.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
http ^0.11.3+14 0.11.3+16
owl >=0.2.1 <0.3.0 0.2.1+1
Transitive dependencies
async 2.0.6
charcode 1.1.1
collection 1.14.9
http_parser 3.1.1
path 1.5.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
owl_codegen >=0.2.1+2 <0.3.0
test ^0.12.0