Skip to content

Unofficial Spotify SDK for android overcoming the limitations of the official one.

License

Notifications You must be signed in to change notification settings

KaustubhPatange/Unofficial-Spotify-SDK

Repository files navigation

Unofficial-Spotify-SDK

CircleCI Maven Central

The library provideps a wrapper over spotify-auth api (which is a part of official-sdk) to handle automatic authentication as well as to yield some certain routes provided by web-api.

The library only includes spotify-auth library as a part of this sdk, for spotify-app-remote you need to add it manually.

The library uses OkHttp version 3.1.2 internally to make http calls, which makes the minimum support sdk to 16.

Features

The library overcomes some limitation of official sdk, some of them are listed below.

  • A built-in way to refresh access token.
  • Some Routes to directly make a call to api (eg: TracksApi, AlbumsApi, etc).
  • Automatic generation of access token when making a routed call.
  • Automatic refreshing of access token so you don't have to do it manually.
  • Explicitly specify result callback (does not depend on calling activity's onActivityResult(), thanks to ActivityResultContract).
  • More...

Download

Library is available on mavenCentral(). Read more in docs.

 implementation 'io.github.kaustubhpatange:spotifyapi:$version'

Guides

Browse from the following topics,

Requirements

  • AndroidX
  • Min SDK 16+

License

Copyright 2020 Kaustubh Patange

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.