GSS.Registry (elixir_google_spreadsheets v0.3.2)
Google spreadsheets core authorization. Automatically updates access token after expiration.
Link to this section Summary
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
Link to this type
state()
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
.
Link to this function
init(state)
Specs
Callback implementation for GenServer.init/1
.
Link to this function
new_spreadsheet(spreadsheet_id, pid, opts \\ [])
Specs
Add or replace Google Spreadsheet in a registry.
Link to this function
spreadsheet_pid(spreadsheet_id, opts \\ [])
Specs
Fetch Google Spreadsheet proccess by it's id in the registry.
Link to this function
start_link(args \\ [])
Specs
Link to this function
token()
Specs
token() :: String.t()
Get account authorization token.