View Source WorkOS.Api (WorkOS SDK for Elixir v0.1.3)

Provides core API communication and data processing functionality.

Link to this section Summary

Functions

Generates the Tesla client used to make requests to WorkOS

Performs a DELETE request

Performs a GET request

Handles request errors

Processes the HTTP response Converts non-200 responses (400+ status code) into error tuples

Performs a POST request

Performs data transformations on the response body to remove JSON fluff

Link to this section Functions

Generates the Tesla client used to make requests to WorkOS

Link to this function

delete(path, params \\ "", opts \\ [])

View Source

Performs a DELETE request

Link to this function

get(path, params \\ [], opts \\ [])

View Source

Performs a GET request

Handles request errors

Processes the HTTP response Converts non-200 responses (400+ status code) into error tuples

Link to this function

post(path, params \\ "", opts \\ [])

View Source

Performs a POST request

Link to this function

process_params(params, keys, defaults \\ %{})

View Source
Link to this function

process_response(message)

View Source

Performs data transformations on the response body to remove JSON fluff