npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ngx-spotify-api/core

v2.1.5

Published

This module was written to use the Spotify-Api type-save inside an angular application. If there are issues please tell me, so I can fix them.

Downloads

596

Readme

@ngx-spotify-api/core

Introduction

This module was written to use the Spotify-Api type-save inside an angular application. If there are issues please tell me, so I can fix them.

Supprted Endpoints

Albums

  • Get an Album
  • Get an Album's Tracks
  • Get Several Albums

Artists

  • Get an Artist
  • Get an Artist's Albums
  • Get an Artist's Top Tracks
  • Get an Artist's Related Artists
  • Get Several Artists

Browse

  • Get a Category
  • Get a Category's Playlists
  • Get a List of Categories
  • Get a List of Featured Playlists
  • Get a List of New Releases
  • ~~Get Recommendations Based on Seeds~~ (coming in a future release)

Follow

  • Check if Current User Follows Artists or Users
  • Check if Users Follow a Playlist
  • Follow Artists or Users
  • Follow a Playlist
  • Get User's Followed Artists
  • Unfollow Artists or Users
  • Unfollow a Playlist

Library

  • Check User's Saved Albums
  • Check User's Saved Tracks
  • Get Current User's Saved Albums
  • Get a User's Saved Tracks
  • Remove Albums for Current User
  • Remove User's Saved Tracks
  • Save Albums for Current User
  • Save Tracks for User

Personalization

  • Get a User's Top Artists
  • Get a User's Top Tracks

Player

  • Get a User's Available Devices
  • Get Information About The User's Current Playback
  • Get Current User's Recently Played Tracks
  • Get the User's Currently Playing Track
  • Pause a User's Playback
  • Seek To Position In Currently Playing Track
  • Set Repeat Mode On User’s Playback
  • Set Volume For User's Playback
  • Skip User’s Playback To Next Track
  • Skip User’s Playback To Previous Track
  • Start/Resume a User's Playback
  • Toggle Shuffle For User’s Playback
  • Transfer a User's Playback

Playlists

  • Add Tracks to a Playlist
  • Change a Playlist's Details
  • Create a Playlist
  • Get a List of Current User's Playlists
  • Get a List of a User's Playlists
  • Get a Playlist Cover Image
  • Get a Playlist
  • Get a Playlist's Tracks
  • Remove Tracks from a Playlist
  • Reorder a Playlist's Tracks
  • Replace a Playlist's Tracks
  • Upload a Custom Playlist Cover Image

Search

  • Search for an Item

Tracks

  • Get Audio Analysis for a Track
  • Get Audio Features for a Track
  • Get Audio Features for Several Tracks
  • Get Several Tracks
  • Get a Track

Users Profile

  • Get Current User's Profile
  • Get a User's Profile

Getting Started

Installation

With npm:

    npm install --save @ngx-spotify-api/core

With yarn:

    yarn add @ngx-spotify-api/core

Init

@NgModule({
  ...
  imports: [
    ...
    NgxSpotifyApiModule
  ],
  ...
})

Configuration

This is an example configuration

import {of} from 'rxjs';
...
@NgModule({
  ...
  imports: [
    ...
    NgxSpotifyApiModule.forRoot({
      api: {
        baseUrl: ''
      },
      authorization: {
        storagePrefix: 'ngx-spotify-api-',
        accessToken: () => of('<your-access-token>')
      }
    })
  ],
  ...
})
export class AppModule { }