handa-gdata-0.6.0: Library and command-line utility for accessing Google services and APIs.

Safe HaskellNone

Network.Google.FusionTables

Contents

Description

Functions for accessing the Fusion Tables API, see https://developers.google.com/fusiontables/.

This provides a very limited subset of the complete (v1) API at present.

Synopsis

Types

type TableId = FTStringSource

ID for a specific fusion table

Raw API routines, returning raw JSON

listTablesSource

Arguments

:: AccessToken

The OAuth 2.0 access token.

-> IO JSValue 

listColumnsSource

Arguments

:: AccessToken

The OAuth 2.0 access token.

-> TableId

which table

-> IO JSValue 

List the columns within a specific table. See https://developers.google.com/fusiontables/docs/v1/reference/column/list.

Parsing result of raw API routines

parseTables :: JSValue -> Result [TableMetadata]Source

Construct a simple Haskell representation of the result of listTables.

Higher level interface to common SQL queries

insertRowsSource

Arguments

:: AccessToken 
-> TableId 
-> [FTString]

Which columns to write.

-> [[FTString]]

Rows

-> IO () 

Insert one or more rows into a table. Rows are represented as lists of strings. The columns being written are passed in as a separate list. The length of all rows must match eachother and must match the list of column names.