One of the most interesting features of XDI is its ability to address any part of an XDI graph in a global and location independent way.
Given an XDI address, two steps are generally involved:
- Discover the XDI endpoint that is authoritative for the referenced data.
- Send an XDI $get message to request the referenced data .
For more information about step 1, see:
How can a PDS XDI endpoint be discovered from a user's identifier(s)?
Example:
Given the following XDI address:
=markus/+email$
Step 1:
Using XRI Resolution, the following PDS XDI endpoint can be discovered:
https://xdi.fullxri.com/=!91F2.8153.F600.AE24/
Step 2:
To request the referenced data, we send the following XDI message (in X3 Simple format):
=sender
$get
/
=markus
+email$
The response should look like this (in XDI/JSON format):
{
"=markus": {
"+email$": "markus.sabadello@gmail.com"
}
}
Comments (0)
You don't have permission to comment on this page.