D2lvalenceElixir.Auth.D2LUserContext.decorate_url_with_authentication

You're seeing just the function decorate_url_with_authentication, go back to D2lvalenceElixir.Auth.D2LUserContext module for more information.
Link to this function

decorate_url_with_authentication(user_context, url, options \\ [])

View Source

Specs

decorate_url_with_authentication(
  %D2lvalenceElixir.Auth.D2LUserContext{
    anonymous: term(),
    app_id: term(),
    app_key: term(),
    encrypt_requests: term(),
    host: term(),
    scheme: term(),
    server_skew: term(),
    user_id: term(),
    user_key: term()
  },
  String.t(),
  %{method: String.t()} | []
) :: String.t()

Create a properly tokenized URL for a new request through this user context, starting from a full URL.

:param url: Full URL to call on the back-end service; no default value. param method: Method for the request (GET by default, POST, etc).

:returns: URL you can use for an HTTP request, containing the time-limited authentication token parameters needed for a Valence API call.