Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spotify-wrapper-leonardo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-wrapper-leonardo

Um wrapper para trabalhar com a Spotify Web API

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 29 Oct 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc