Socket
Socket
Sign inDemoInstall

spotify-wrapper-leonardo

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-wrapper-leonardo

Um wrapper para trabalhar com a Spotify Web API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
10.0 kB
Created
Weekly downloads
 

Readme

Source

Spotify Wrapper

Build Status Coverage Status

Um wrapper para trabalhar com a Spotify Web API

Dependências

Essa biblioteca depende de fetch para fazer requisições a Spotify Web API. Para ambientes que não oferecem suporte à busca, é necessário fornecer um polyfill para navegador ou polyfill para Node.

Instalação

npm install spotify-wrapper-leonardo --save

Como usar

ES6

// importar um método específico
import SpotifyWrapper from 'spotify-wrapper-leonardo';

const spotify = new SpotifyWrapper({
  token: 'SEU_TOKEN_AQUI'
});

// usando o método
spotify.search.artists('Incubus');

CommonJS

const SpotifyWrapper = require('spotify-wrapper-leonardo').default;

const spotify = new SpotifyWrapper({
  token: 'SEU_TOKEN_AQUI'
});

UMD no Browser

<script src="spotify-wrapper.umd.js"></script>

Depois disso, a biblioteca estará disponível para o Global como SpotifyWrapper. Siga um exemplo:


const spotify = new SpotifyWrapper({
  token: 'SEU_TOKEN_AQUI'
});

const albums = spotify.search.albums('Artista escolhido');

FAQs

Last updated on 29 Oct 2019

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