๐Ÿ€ ATproto library for gleam
atproto library gleam
35

Configure Feed

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

possum: add `authorized` function

kacaii.dev (Jun 28, 2026, 11:34 PM -0300) 21098e7c 9894f3fa

+22
+22
src/possum.gleam
··· 97 97 |> request.set_body(body) 98 98 } 99 99 100 + /// Include a access token in the request's headers. 101 + /// Tokens can be acquired with `create_session`. 102 + /// 103 + /// ## Examples 104 + /// 105 + /// ```gleam 106 + /// import gleam/http/request 107 + /// import possum 108 + /// 109 + /// let request = 110 + /// request.new() 111 + /// |> request.set_host("bsky.social") 112 + /// |> possum.authorized("my-access-token") 113 + /// ``` 114 + /// 115 + pub fn authorized( 116 + request: request.Request(_), 117 + access_token token: String, 118 + ) -> request.Request(_) { 119 + request.set_header(request, "authorization", "bearer " <> token) 120 + } 121 + 100 122 /// Get information about an account and repository, including the list of collections. 101 123 /// 102 124 /// ## Examples