def	create_url(long_url)
		  begin
			  options = { :query => { :url => long_url, :api_key => @api_key } }
        result = HTTParty.post(@firefly_url + '/api/add', options)

				if result =~ /Permission denied/i
          raise "Permission denied. Is your API Key set correctly?" if result.status = 401
				else
				  return result
				end
			end
		end
def	create_url(long_url)
		  begin
			  options = { :query => { :url => long_url, :api_key => @api_key } }
        result = HTTParty.post(@firefly_url + '/api/add', options)

				if result =~ /Permission denied/i
          raise "Permission denied. Is your API Key set correctly?" if result.status = 401
				else
				  return result
				end
			end
		end
Shortend +long_url+ and returns the short_url on success