GSS.Registry (elixir_google_spreadsheets v0.3.2)

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

Link to this section Summary

Types

State of Google Cloud API

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

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

Specs

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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

init(state()) :: {:ok, state()}

Callback implementation for GenServer.init/1.

Link to this function

new_spreadsheet(spreadsheet_id, pid, opts \\ [])

Specs

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 \\ [])

Specs

spreadsheet_pid(String.t(), Keyword.t()) :: pid() | nil

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

Link to this function

start_link(args \\ [])

Specs

start_link(any()) :: {:ok, pid()}

Specs

token() :: String.t()

Get account authorization token.