···3939 // including their handle and their service endpoint, where their Personal
4040 // Data Server (PDS) is located.
4141 request.new()
4242- |> possum.resolve_did_document(did)
4242+ |> possum.get_plc_data(did)
43434444 // You also query your identifier by sending a request directly to your PDS.
4545 request.new()
+4-4
src/possum.gleam
···5656/// Documentation: [xrpc/com.atproto.server](https://endpoints.bsky.app/#bluesky-app/tag/comatprotoserver)
5757const com_atproto_server = "xrpc/com.atproto.server"
58585959-/// Resolves a DID Document from the plc.directory,
5959+/// Get current PLC Data for the indicated DID,
6060/// this returns information about a Decentralized Identifier (DID),
6161/// including their handle and service endpoint.
6262///
···7070///
7171/// let request =
7272/// request.new()
7373-/// |> possum.resolve_did_document(did)
7373+/// |> possum.get_plc_data(did)
7474/// ```
7575///
7676/// Documentation: [AT Protocol DIDs](https://atproto.com/specs/did)
7777-pub fn resolve_did_document(
7777+pub fn get_plc_data(
7878 request: request.Request(_),
7979 did: String,
8080) -> request.Request(_) {
···8383 request
8484 |> request.set_method(http.Get)
8585 |> request.set_host("plc.directory")
8686- |> request.set_path(path)
8686+ |> request.set_path(path <> "/data")
8787}
88888989/// Resolves a handle to a DID using a HTTPS `/.well-known/` URL path,