SubspaceProductAPI.Connection.new

You're seeing just the function new, go back to SubspaceProductAPI.Connection module for more information.

Specs

new() :: Tesla.Env.client()

Configure an authless client connection

Returns

Tesla.Env.client

Specs

new(String.t()) :: Tesla.Env.client()
new(([String.t()] -> String.t())) :: Tesla.Env.client()

Configure a client connection using a function which yields a Bearer token.

Parameters

  • token_fetcher (function arity of 1): Callback which provides an OAuth2 token given a list of scopes

Returns

Tesla.Env.client