title: Spotify Web JS wrapper-posting multiple tracks (not from playlist)
body: <p>I am attempting to use the Spotify Web API JS wrapper from the following repo:</p>
  
  <p><a href="https://github.com/JMPerez/spotify-web-api-js" rel="nofollow">https://github.com/JMPerez/spotify-web-api-js</a></p>
  
  <p>My goal here is to pull  multiple tracks from Spotify and print them to a playlist on a webpage.The final version would ideally display up to 15 tracks at a time. Would this require an individual <li> for each? I'm pretty new to using API's so I will display the relevant JS and HTMl below for reference. Thank you for your help!</p>
  
  <pre><code> var spotifyApi= new SpotifyWebApi();
      //access token (optional)
      spotifyApi.setAccessToken();
  
      Constr.prototype.getTracks = function(trackIds, options, callback) {
          var requestData = {
            url: _baseUri + '/tracks/',
            params: { ids: trackIds.join(',') }
          };
          return _checkParamsAndPerformRequest(requestData, options, callback);
        };
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="playlist"&gt;
      &lt;p&gt;Upload of tracks requires valid Spotify account&lt;/p&gt;
  
  &lt;a href="https://www.spotify.com/us/signup/"&gt;Sign up here&lt;/a&gt;
  
     &lt;div class="search"&gt;
         &lt;input type="search"&gt;
         &lt;p&gt;Enter Artist Here&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;ul&gt;
          &lt;li type='none'id="tracks"&gt;
          &lt;/li&gt;
      &lt;/ul&gt;  
  
  &lt;/div&gt;&lt;!--playlist--&gt;
  </code></pre>