def post(path, parameters, cookies, use_nexus=false)

      http = _dropcam_http(use_nexus)
      
      request = Net::HTTP::Post.new(path)
      request.set_form_data(parameters)
      
      request.add_field("Cookie",cookies.join('; ')) if cookies

      response = http.request(request)
            
      if response.success?
        return response
      elsif response.not_authorized?
        raise AuthorizationError 
      elsif response.error?
        message = "Unkown Error"
        message = JSON.parse(response.body)["status_detail"] if JSON.parse(response.body)["status_detail"]
        raise UnkownError, message
      else 
        raise CameraNotFoundError 
      end
      
    end
def post(path, parameters, cookies, use_nexus=false)

      http = _dropcam_http(use_nexus)
      
      request = Net::HTTP::Post.new(path)
      request.set_form_data(parameters)
      
      request.add_field("Cookie",cookies.join('; ')) if cookies

      response = http.request(request)
            
      if response.success?
        return response
      elsif response.not_authorized?
        raise AuthorizationError 
      elsif response.error?
        message = "Unkown Error"
        message = JSON.parse(response.body)["status_detail"] if JSON.parse(response.body)["status_detail"]
        raise UnkownError, message
      else 
        raise CameraNotFoundError 
      end
      
    end
DELETE:  id = clip_id
 videos.get # id = clip_id
 videos.download # id = clip_id
 videos.play # id = clip_idß