Intel471Ex.Client (intel471_ex v0.1.0)

HTTP Client for Intel 471 Titan API using Req.

Summary

Functions

request(method, path, params \\ %{}, body \\ nil, config \\ nil)

@spec request(atom(), String.t(), map(), map() | nil, map() | nil) ::
  {:ok, map()} | {:error, map() | any()}

Makes an API request to Intel 471 Titan API.

Parameters

  • method: HTTP method (:get, :post, :put, :delete)
  • path: API endpoint path
  • params: Query parameters (optional)
  • body: Request body for POST/PUT requests (optional)
  • config: Optional configuration override

Returns

  • {:ok, response} - Successful response with parsed JSON
  • {:error, reason} - Error with reason