Atex.XRPC (atex v0.2.0)

View Source

Summary

Functions

Perform a HTTP GET on a XRPC resource. Called a "query" in lexicons.

Perform a HTTP POST on a XRPC resource. Called a "prodecure" in lexicons.

Put an authorization header into a keyword list of options to pass to a HTTP client.

Like get/3 but is unauthenticated by default.

Like post/3 but is unauthenticated by default.

Functions

get(client, name, opts \\ [])

Perform a HTTP GET on a XRPC resource. Called a "query" in lexicons.

post(client, name, opts \\ [])

Perform a HTTP POST on a XRPC resource. Called a "prodecure" in lexicons.

put_auth(opts, token)

@spec put_auth(
  keyword(),
  String.t()
) :: keyword()

Put an authorization header into a keyword list of options to pass to a HTTP client.

unauthed_get(endpoint, name, opts \\ [])

@spec unauthed_get(String.t(), String.t(), keyword()) :: Atex.XRPC.Adapter.result()

Like get/3 but is unauthenticated by default.

unauthed_post(endpoint, name, opts \\ [])

@spec unauthed_post(String.t(), String.t(), keyword()) :: Atex.XRPC.Adapter.result()

Like post/3 but is unauthenticated by default.