code: function(query, options) {
        options = opts(this, options);
        query = {q: query != null ? convertQueryInput(query) : ''}
  
        var data = undefined;
        if(options.method === "POST"){
          data = JSON.stringify(query);
          query = {}; // don't send q in URL
        }
  
        return new APICall({
          action: 'search',
          type: options.method || 'GET',
          query: server_params(options, query),
          data: data,
          options: options
        });
      }
docs: Search CloudMine for text objects.
  Results may be affected by defaults and/or by the options parameter.
  @param {string} query Query parameters to search for.
  @param {object} [options] Override defaults set on WebService. See WebService constructor for parameters.
  @return {APICall} An APICall instance for the web service request used to attach events.