def loadalltracks
      uri = URI(@service_url + 'loadalltracks')

      http = Net::HTTP.new(uri.host, uri.port)
      http.use_ssl = true

      req = Net::HTTP::Post.new(uri.path)
      req.set_form_data('u' => 0, 'xt' => @cookie)
      req['Authorization'] = 'GoogleLogin auth=%s' % @auth
      res = http.request(req)

      unless res.is_a? Net::HTTPSuccess
        fail Error, 'loadalltracks failed: #{res.code}'
      end

      JSON.parse(res.body)
    end
def loadalltracks
      uri = URI(@service_url + 'loadalltracks')

      http = Net::HTTP.new(uri.host, uri.port)
      http.use_ssl = true

      req = Net::HTTP::Post.new(uri.path)
      req.set_form_data('u' => 0, 'xt' => @cookie)
      req['Authorization'] = 'GoogleLogin auth=%s' % @auth
      res = http.request(req)

      unless res.is_a? Net::HTTPSuccess
        fail Error, 'loadalltracks failed: #{res.code}'
      end

      JSON.parse(res.body)
    end
Web Client API