def saved_tracks(limit: 20, offset: 0)
      url = "me/tracks?limit=#{limit}&offset=#{offset}"
      response = User.oauth_get(@id, url)
      json = RSpotify.raw_response ? JSON.parse(response) : response

      tracks = json['items'].select { |i| i['track'] }
      @tracks_added_at = hash_for(tracks, 'added_at') do |added_at|
        Time.parse added_at
      end

      return response if RSpotify.raw_response
      tracks.map { |t| Track.new t['track'] }
    end
def saved_tracks(limit: 20, offset: 0)
      url = "me/tracks?limit=#{limit}&offset=#{offset}"
      response = User.oauth_get(@id, url)
      json = RSpotify.raw_response ? JSON.parse(response) : response

      tracks = json['items'].select { |i| i['track'] }
      @tracks_added_at = hash_for(tracks, 'added_at') do |added_at|
        Time.parse added_at
      end

      return response if RSpotify.raw_response
      tracks.map { |t| Track.new t['track'] }
    end
Returns the tracks saved in the Spotify user’s “Your Music” library

 @param limit  [Integer] Maximum number of tracks to return. Maximum: 50. Minimum: 1. Default: 20.
 @param offset [Integer] The index of the first track to return. Use with limit to get the next set of tracks. Default: 0.
 @return [Array<Track>]

 @example
           tracks = user.saved_tracks
           tracks.size       #=> 20
           tracks.first.name #=> "Do I Wanna Know?"