module Fanforce::API::Utils extend self def self.included(base) base.extend(self) end include Fanforce::Base::Utils def valid_fanforce_js_request?(params=@params) return false if !params.is_a?(Hash) return false if is_blank?(params[:organization_id]) or is_blank?(params[:api_key]) return true end def valid_fanforce_request?(params=@params) return false if !params.is_a?(Hash) return false if is_blank?(params[:organization_id]) return false if is_blank?(params[:app_id]) return true end def valid_install_request?(params=@params) return false if !params.is_a?(Hash) return false if is_blank?(params[:organization_id]) return false if is_blank?(params[:app_id]) return false if is_blank?(params[:api_key]) return true end def valid_uninstall_request?(params=@params) return false if !params.is_a?(Hash) return false if is_blank?(params[:organization_id]) return false if is_blank?(params[:app_id]) return false if is_blank?(params[:api_key]) return true end end