def api_post(path, params={}, required_param_names=[], mutually_exclusive=false)

      if mutually_exclusive
        check_for_mutual_exclusivity(required_param_names, params)
      elsif !required_param_names.nil? && !required_param_names.empty?
        check_nil_or_empty(required_param_names, params)
      end

      options = Hash.new()
      options[:body] = params

      options.merge!({:body => {:app_id => @client.app_id, :access_token => @client.access_token}}){
        |key, oldval, newval| oldval.merge!(newval)
      }

      response = self.class.post path, options
      case response.code
        when 200
          process_response response
        else
          raise Hoiio::ServerError
      end
    end
def api_post(path, params={}, required_param_names=[], mutually_exclusive=false)

      if mutually_exclusive
        check_for_mutual_exclusivity(required_param_names, params)
      elsif !required_param_names.nil? && !required_param_names.empty?
        check_nil_or_empty(required_param_names, params)
      end

      options = Hash.new()
      options[:body] = params

      options.merge!({:body => {:app_id => @client.app_id, :access_token => @client.access_token}}){
        |key, oldval, newval| oldval.merge!(newval)
      }

      response = self.class.post path, options
      case response.code
        when 200
          process_response response
        else
          raise Hoiio::ServerError
      end
    end
Create an instance of Request object using Hoiio::Client object
 Inside @client object, app_id and access_token are stored to make API request
 Send a request to Hoiio API
 @param path path of the request
 @param params all params (required and optional) to pass along the request
 @param required_param_names array of names of all the required params that need to be passed along the request
 @param mutually_exclusive mark whether to check for mutual exclusivity of required params
 (meaning only 1 required param can be present)

 @return response from Hoiio API after being processed
 @raise ServerError if response's HTTP status is not 200 OK.