Basic auth would be best.  Something like:

    http.url_prefix = "https://token:#{token}@api.simperium.com/1/#{appid}/#{event.to_s}/i/"

If you don't want to use Basic Auth like that, I can consider supporting token authentication:

    http.headers["Authorization"] = "Token #{token}"