require 'pp' require 'rubygems' require 'json' require 'httpclient' username = ARGV[0] password = ARGV[1] api_key = ARGV[2] list_id = ARGV[3] if ! username || ! password || ! api_key || ! list_id print " Usage: ruby delete_list.rb username password api_key list_id " exit 1 end print "Inputs: #{username}, #{password}, #{api_key}, #{list_id}\n" client = HTTPClient.new user = username password = password client.set_auth(nil, user, password) res = client.delete( "http://api.smart.fm//lists/#{list_id}?api_key=#{api_key}" ) # Nothing useful in here, and can't get it to do json # # pp res print "OK, that id is probably deleted.\n"