Msg.Request (msg v0.1.1)

Provides helpers for performing Microsoft Graph API requests using Req.

Handles common behaviors like parsing JSON, extracting errors, and optionally paginating across @odata.nextLink.

Summary

Functions

Performs a simple GET request to the given Graph API path.

Types

client()

@type client() :: Req.Request.t()

Functions

get(client, path)

@spec get(client(), String.t()) :: {:ok, map()} | {:error, any()}

Performs a simple GET request to the given Graph API path.

Example

Msg.Request.get(client, "/me")