src/spotify-web-api.js
function(options, callback) {
    return (
      WebApiRequest.builder(this.getAccessToken())
        .withPath('/v1/me/player/pause')
        /*jshint camelcase: false */
        .withQueryParameters(
          options && options.device_id ? { device_id: options.device_id } : null
        )
        .withHeaders({ 'Content-Type': 'application/json' })
        .build()
        .execute(HttpManager.put, callback)
    );
  }
function(options, callback) {
    return (
      WebApiRequest.builder(this.getAccessToken())
        .withPath('/v1/me/player/pause')
        /*jshint camelcase: false */
        .withQueryParameters(
          options && options.device_id ? { device_id: options.device_id } : null
        )
        .withHeaders({ 'Content-Type': 'application/json' })
        .build()
        .execute(HttpManager.put, callback)
    );
  }
function ( options , callback ) { return ( WebApiRequest . builder ( this . getAccessToken ( ) ) . withPath ( '/v1/me/player/pause' ) /*jshint camelcase: false */ . withQueryParameters ( options && options . device_id ? { device_id : options . device_id } : null ) . withHeaders ( { 'Content-Type' : 'application/json' } ) . build ( ) . execute ( HttpManager . put , callback ) ) ; }
Pauses the Current User's Playback
@param {Object} [options] Options, for now device_id,
@param {requestCallback} [callback] Optional callback method to be called instead of the promise.
@example playbackPause().then(...)
@returns {Promise|undefined} A promise that if successful, resolves into a paging object of tracks,
otherwise an error. Not returned if a callback is given.
Pauses the Current User s Playback