elixir_google_spreadsheets v0.1.6 GSS.Registry

Google spreadsheets core authorization. Automatically updates access token after expiration.

Link to this section Summary

Types

State of Google Cloud API :

%{
    auth: %Goth.Token{
        expires: 1453356568,
        token: "ya29.cALlJ4HHWRvMkYB-WsAR-CZnexE459yA7QPqKg3nei1y2T7-iqmbcgxb8XrTATNn_Blim",
        type: "Bearer"
    }
}

Functions

Get pid of sheet in :active_sheets registry

Add or replace Google Spreadsheet in a registry

Fetch Google Spreadsheet proccess by it’s id in the registry

Get account authorization token

Link to this section Types

Link to this type state()
state() :: map

State of Google Cloud API :

%{
    auth: %Goth.Token{
        expires: 1453356568,
        token: "ya29.cALlJ4HHWRvMkYB-WsAR-CZnexE459yA7QPqKg3nei1y2T7-iqmbcgxb8XrTATNn_Blim",
        type: "Bearer"
    }
}

Link to this section Functions

Link to this function handle_call(msg, from, state)

Get pid of sheet in :active_sheets registry.

Link to this function new_spreadsheet(spreadsheet_id, pid, opts \\ [])
new_spreadsheet(String.t, pid, Keyword.t) :: :ok

Add or replace Google Spreadsheet in a registry.

Link to this function spreadsheet_pid(spreadsheet_id, opts \\ [])
spreadsheet_pid(String.t, Keyword.t) :: pid

Fetch Google Spreadsheet proccess by it’s id in the registry.

Link to this function start_link()
start_link() :: {:ok, pid}

Get account authorization token.