code: function getOperationContext(opType, options) {
  
      var operation = getOperation(opType);
  
      options = options || {};
      options.visibility = !options.token ? 'public' : 'private';
      options.apiRoot = APISPEC.root;
  
      operation.headers = operation.headers || {};
      operation.headers['GData-Version'] = Number(APISPEC.version).toFixed(1);
  
      if (options.token) {
          operation.headers['Authorization'] = 'Bearer ' + options.token;
          delete options.token;
      }
  
      operation.url = tpl(operation.url, options);
  
      operation.body = options.body;
      operation.strictSSL = false;
  
      return operation;
  }
docs: Retrieves the operation context for the given type
  
  @param opType
  @param options
  @returns {*}