import { SpotifyClientConfiguration } from '../lib/interfaces' ; var SpotifyWebApi = require ( 'spotify-web-api-node' ) ; export function spotifyWebAPIClient ( configuration ) { let spotifyApi = new SpotifyWebApi ( { clientId : configuration . clientId , clientSecret : configuration . clientSecret , redirectUri : configuration . redirectUri } ) ; spotifyApi . setAccessToken ( configuration . accessToken ) ; return spotifyApi ; } ;