• Stars
    star
    201
  • Rank 194,491 (Top 4 %)
  • Language
    Dart
  • License
    BSD 3-Clause "New...
  • Created over 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A dart library for interfacing with the Spotify API.

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.

More Repositories

1

simple_moment

A simple implementation of the Moment.js features for relative time in Dart
Dart
46
star
2

darksky-weather-dart

A dart library for interfacing with the Dark Sky Weather API.
Dart
13
star
3

encrypted-hetzner-cloud-with-nextcloud

Walkthrough on setting up an encrypted Hetzner cloud server with an encrypted volume
11
star
4

signalr2-dart

SignalR for ASP.NET Core 2.1 Interop library for Dart
Dart
10
star
5

Shinkei

an IRC bot written in C# with a massive plugin system.
C#
6
star
6

cleverbot-dart

A dart wrapper for cleverbot.
Dart
5
star
7

dart-irc-bot

an IRC bot written in Dart with a pretty OK plugin system.
Dart
5
star
8

adventofcode

Advent of Code from 2023
C#
4
star
9

dart_sdl

C++
3
star
10

dart_gui

Dart
3
star
11

vader-sentiment-dart

Sentiment analysis using VADER with Dart.
Dart
2
star
12

pfcACP

Postfix/Courier control panel for setting up new mail accounts etc.
PHP
2
star
13

markov-dart

A dart library for creating markov chains.
Dart
2
star
14

speedtest

A very simple speedtesting tool for your network with InfluxDB integration
C#
2
star
15

ovh-status

Retrieves server availability information for OVH, SoYouStart and Kimsufi
PHP
2
star
16

adventofcode-2017

πŸŽ„ Advent of Code 2017 with Dart 🎯
Dart
1
star
17

VirtualFlowListPanel

C#
1
star
18

ST2-FScript

FScript
XML
1
star
19

matirc

A web IRC client written in Dart with Angular 2 and Material design
Dart
1
star
20

rinukkusu

1
star
21

mBlawg

a microblog.
PHP
1
star
22

LimeBeanEnhancements

C#
1
star
23

DALL-E-LAMA

C#
1
star
24

TelegramBotWrapper

C#
1
star
25

SDL2-GUI

My attempt at an ugly SDL2 GUI library
C++
1
star
26

adventofcode-2022

πŸŽ„ Advent of Code 2022 with Dart 🎯
Dart
1
star