code: function(options){
        var url = options.apiUrl + (options.url ? options.url : '');
  
        if(options.params) {
          url += (url.indexOf('?') === -1 ? '?' : '&') + this.buildParams(options.params);
        }
  
        return url;
      }
docs: Build full URL from a base url and params, if there are any.