๐Ÿ€ ATproto XRPC client for gleam possum.hexdocs.pm
gleam atproto xrpc-client library
41

Configure Feed

Select the types of activity you want to include in your feed.

possum: add get_session_info

kacaii.dev (Jun 28, 2026, 11:52 PM -0300) 673826f6 0758862c

+23
+23
src/possum.gleam
··· 123 123 |> request.set_path(com_atproto_server <> ".refreshSession") 124 124 } 125 125 126 + /// Get information about the current auth session. 127 + /// Requires auth. 128 + /// 129 + /// ## Examples 130 + /// 131 + /// ```gleam 132 + /// import gleam/http/request 133 + /// import possum 134 + /// 135 + /// let request = 136 + /// request.new() 137 + /// |> request.set_host("bsky.social") 138 + /// |> possum.authorized("access-token") 139 + /// |> possum.get_session_info 140 + /// ``` 141 + /// 142 + /// Documentation: [/xrpc/com.atproto.server.getSession](https://endpoints.bsky.app/#bluesky-app/tag/comatprotoserver/POST/xrpc/com.atproto.server.getSession) 143 + pub fn get_session_info(request: request.Request(_)) -> request.Request(_) { 144 + request 145 + |> request.set_method(http.Get) 146 + |> request.set_path(com_atproto_server <> ".getSession") 147 + } 148 + 126 149 /// Include a access token in the request's headers. 127 150 /// Tokens can be acquired with `create_session`. 128 151 ///