require "rexml/text"
require "xml/libxml"
- if defined?(SystemTimer)
- Timer = SystemTimer
- else
- require "timeout"
- Timer = Timeout
- end
-
# The base class for API Errors.
class APIError < RuntimeError
def initialize(message = "Generic API Error")
# Construct a random token of a given length
def self.make_token(length = 30)
- chars = "abcdefghijklmnopqrtuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
+ chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
token = ""
length.times do