Socket
Socket
Sign inDemoInstall

spotify-types

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spotify-types

All the typings for the various Spotify API Object typings written in typescript.


Version published
Weekly downloads
269
decreased by-10.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Spotify Types

Module Documentation Reference: https://spotify-api.js.org/apiTypes/
Spotify Object Index Reference: https://developer.spotify.com/documentation/web-api/reference/#objects-index

All the typings for the various Spotify API Object typings written in typescript. You can view the Spotify web api reference for all the objects here.

This is a typings modules made for Spotify-api.js v9. This can also be used separately just for typescript debugging when working with Spotify API. This package can be even used in deno using the cdn urls.

import { SearchContent } from "spotify-types";
import axios, { AxiosResponse } from "axios";

const response: AxiosResponse<SearchContent> = await axios.get('https://api.spotify.com/v1/search', {
    headers: { "Authorization": "Bearer " + process.env.SPOTIFY_TOKEN },
    params: {
        q: "search query",
        type: "track",
        market: "US"
    }
});

Keywords

FAQs

Last updated on 11 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc