Git Product home page Git Product logo

spotify-dart's Introduction

spotify-dart Pub Dart CI

A dart library for interfacing with the Spotify API.

Usage

Simple Example

final credentials = SpotifyApiCredentials(clientId, clientSecret);
final spotify = SpotifyApi(credentials);
final artist = await spotify.artists.get('0OdUWJ0sBjDrqHygGUXeCF');

Authorization

For detailed information regarding authorization, client credentials flow and more, see the wiki.

Features and bugs

Please file feature requests and bugs at the issue tracker.

Development

Generating JSON Serializers

Run dart run build_runner build to generate JSON serializers via json_serializable. Run dart run build_runner watch to continuously rebuild serializers in the background when files are updated.

Running tests

Run dart test to run all of the tests in test/spotify_test.dart.

Running example code

Run dart example/example to run the example code. You'll need to modify example/example.dart to use your Spotify client ID and secret.

If you would like to run the example that accesses your user data (such as currently playing song etc.), run pub run example/example_auth.dart. There, you are requested to enter your redirect url (see the comment above redirectUri). After that, you are requested to call a given url (or paste it into your browser). That url will do a redirect in your browser. You should copy and paste this redirected url into your console to see the currently playing song and your available devices.

spotify-dart's People

Contributors

brunojurkovic avatar chances avatar deandreamatias avatar dependabot[bot] avatar doodlezucc avatar ebarnsli avatar elmdecoste avatar espiegelberg avatar evaqum avatar fotidim avatar hayribakici avatar ikatsuba avatar ivansupervan avatar jzhan10 avatar krtirtho avatar levihassel avatar nrubin29 avatar nzoschke avatar rakeshteamswork avatar rinukkusu avatar roisnir avatar scarnett avatar stefanoromanello avatar volgin avatar voxar avatar wesleybatista avatar willroxby avatar yoannmtr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.