View Source PorscheConnEx.Session.RequestData (porsche_conn_ex v0.1.0)

Structure containing the necessary data to perform API calls.

Created and returned by PorscheConnEx.Session.request_data/1.

Fields

  • config — a PorscheConnEx.Config structure containing API configuration
  • headers — a Map of HTTP authentication headers

By altering this structure, you can, in theory, authenticate with the API using one configuration, then make calls with a different configuration. I'm not sure why you'd do this, though, and I wouldn't recommend it — some aspects of the API are defined at authentication rather than per-request.

Summary

Types

@type t() :: %PorscheConnEx.Session.RequestData{
  config: PorscheConnEx.Config.t(),
  headers: %{required(binary()) => binary()}
}