fr.applicius.foorgol

Spreadsheet

trait Spreadsheet extends AnyRef

Google spreadsheet DSL.

Self Type
Spreadsheet with WithHttp
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Spreadsheet
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def accessToken: String

    OAuth access token

  2. implicit abstract def context: ExecutionContext

    Execution context

  3. abstract def refreshToken: Option[RefreshToken]

    Can be used with offline access token, to refresh it.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def append(spreadsheetId: String, worksheetId: String, values: String*): Future[List[URI]]

    Inserts given values as uninterrupted sequence of cells in a new row at end of the specified worksheet.

    Inserts given values as uninterrupted sequence of cells in a new row at end of the specified worksheet.

    spreadsheetId

    Spreadsheet ID (SpreadsheetInfo.id)

    worksheetId

    Worksheet ID (SpreadsheetInfo.id)

    values

    Uninterrupted sequence of cell values

  5. def append(spreadsheetId: String, worksheetId: String, values: List[(Int, String)]): Future[List[URI]]

    Inserts given values as cells in a new row at end of the specified worksheet (after the last row containing a cell with some content).

    Inserts given values as cells in a new row at end of the specified worksheet (after the last row containing a cell with some content).

    spreadsheetId

    Spreadsheet ID (SpreadsheetInfo.id)

    worksheetId

    Worksheet ID (SpreadsheetInfo.id)

    values

    Cell values with associated positions (first = 1)

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def cells(spreadsheetId: String, worksheetId: String, rowRange: Option[WorksheetRange], colRange: Option[WorksheetRange]): Future[Option[WorksheetCells]]

    Returns matching cells, if any.

    Returns matching cells, if any.

    spreadsheetId

    Spreadsheet ID (SpreadsheetInfo.id)

    worksheetId

    Worksheet ID (WorksheetInfo.id)

    rowRange

    Optional row range

    colRange

    Optional column range

    cells("spreadsheetId", "worksheetId", None, None)
  8. def cells(id: String, index: Int, rowRange: Option[WorksheetRange], colRange: Option[WorksheetRange]): Future[Option[WorksheetCells]]

    Returns matching cells, if any.

    Returns matching cells, if any.

    id

    Spreadsheet ID

    index

    Worksheet index (first = 0)

    rowRange

    Optional row range

    colRange

    Optional column range

    cells("spreadsheetId", 0, None, None) // all cells of first worksheet
  9. def cells(uri: URI, rowRange: Option[WorksheetRange], colRange: Option[WorksheetRange]): Future[Option[WorksheetCells]]

    Returns list of cells from given URI (WorksheetInfo.cellsUri).

    Returns list of cells from given URI (WorksheetInfo.cellsUri).

    uri

    Cells URI

    rowRange

    Row range

    colRange

    Column range

  10. def change(spreadsheetId: String, worksheetId: String, cells: List[CellValue]): Future[List[URI]]

    Changes cell in specified worksheet.

    Changes cell in specified worksheet.

    spreadsheetId

    Spreadsheet ID (SpreadsheetInfo.id)

    worksheetId

    Worksheet ID (WorksheetInfo.id)

    cells

    List of cells to be created

    returns

    List of version URIs for each created cell

    // Put "A" as content of cell at first row second column,
    // first worksheet of specified spreadsheet
    change("spreadsheetId", "worksheetId", List(CellValue(1, 2, "A")))
  11. def change(id: String, index: Int, cells: List[CellValue]): Future[List[URI]]

    Changes cell in specified worksheet.

    Changes cell in specified worksheet.

    id

    Spreadsheet ID

    index

    Worksheet index (first = 0)

    cells

    List of cells to be created

    returns

    List of version URIs for each created cell

    // Put "A" as content of cell at first row second column,
    // first worksheet of specified spreadsheet
    change("spreadsheetId", 0, List(CellValue(1, 2, "A")))
  12. def change(uri: URI, cells: List[CellValue]): Future[List[URI]]

    Changes cells.

    Changes cells. Any existing content will be overwrited .

    uri

    Cells URI (WorksheetInfo.cellsUri)

    cells

    List of cells to be created

    returns

    List of version URI for each created cell

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def lastRow(spreadsheetId: String, worksheetId: String): Future[Option[WorksheetCells]]

    Returns last row of specified worksheet, if any.

    Returns last row of specified worksheet, if any.

    spreadsheetId

    Spreadsheet ID (SpreadsheetInfo.id)

    worksheetId

    Worksheet ID (WorksheetInfo.id)

    lastRow("spreadsheetId", "worksheetId")
  21. def list: Future[List[SpreadsheetInfo]]

    Returns list of all available spreadsheets.

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def spreadsheet(id: String): Future[SpreadsheetInfo]

    Returns information for matching spreadsheet, if any.

    Returns information for matching spreadsheet, if any.

    id

    Spreadsheet ID (SpreadsheetInfo.id)

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def withWorksheets[T](id: String)(z: T)(f: (T, WorksheetInfo) ⇒ Either[T, T]): Future[T]

    Processes worksheets found for specified spreadsheet (SpreadsheetInfo.worksheetsUri).

    Processes worksheets found for specified spreadsheet (SpreadsheetInfo.worksheetsUri).

    id

    Spreadsheet ID

    z

    Initial value for function f

    f

    Function given current state and extracted information. Must return either a final value at Left if must not look at other worksheets, or updated value at Right to go on processing worksheets.

    // api: Spreadsheet
    
    // Will find the second worksheet...
    val second: Future[Option[WorksheetInfo]] =
      api.worksheet("spreadsheetId")(1 -> None) { (st, w) =>
      val (i, _) = st
      if (i == 2) /* found some, so no next step */ Left(2 -> Some(w))
      else Right(i+1 -> None)
    } map (_._2)
  32. def worksheet(spreadsheetId: String, worksheetId: String): Future[Option[WorksheetInfo]]

    Returns worksheet matching given ID.

    Returns worksheet matching given ID.

    spreadsheetId

    Spreadsheet ID (SpreadsheetInfo.id)

    worksheetId

    Worksheet ID (WorksheetInfo.id)

    See also

    withWorksheets

  33. def worksheet(id: String, index: Int): Future[Option[WorksheetInfo]]

    Returns worksheet from specified worksheet whose index in feed is given one, if any.

    Returns worksheet from specified worksheet whose index in feed is given one, if any.

    id

    Spreadsheet ID (SpreadsheetInfo.id)

    index

    Worksheet index in underlying feed (first = 0)

    See also

    withWorksheets

    val first: Future[Option[WorksheetInfo]] =
    worksheet("spreadsheetId", 0)
  34. def worksheets(uri: URI): Future[List[WorksheetInfo]]

    Returns list of worksheets from given URI (SpreadsheetInfo.worksheetsUri).

  35. def worksheets(id: String): Future[List[WorksheetInfo]]

    Returns list of worksheets for specified spreadsheet

    Returns list of worksheets for specified spreadsheet

    id

    Spreadsheet ID (SpreadsheetInfo.id)

Inherited from AnyRef

Inherited from Any

Ungrouped