update api example call for name lookups to fred.id

This commit is contained in:
Aaron Blankstein
2017-12-29 09:41:13 -05:00
parent 0a06cff114
commit 8c387211e8

View File

@@ -2454,49 +2454,62 @@ Lookup and resolver a user's profile. Defaults to the `id` namespace.
+ Subdomain Aware
+ Legacy Endpoint
+ Parameters
+ username: fredwilson (string) - username to lookup
+ username: fred (string) - username to lookup
+ Response 200 (application/json)
{
"fredwilson": {
"fred.id": {
"owner_address": "1CER5u4QXuqffHjHKrU76iMCsqtJLM5VHu",
"profile": {
"avatar": {
"url": "https://s3.amazonaws.com/kd4/fredwilson1"
},
"bio": "I am a VC",
"bitcoin": {
"address": "1Fbi3WDPEK6FxKppCXReCPFTgr9KhWhNB7"
},
"cover": {
"url": "https://s3.amazonaws.com/dx3/fredwilson"
},
"facebook": {
"proof": {
"url": "https://facebook.com/fred.wilson.963871/posts/10100401430876108"
},
"username": "fred.wilson.963871"
},
"graph": {
"url": "https://s3.amazonaws.com/grph/fredwilson"
},
"location": {
"formatted": "New York City"
},
"name": {
"formatted": "Fred Wilson"
},
"twitter": {
"proof": {
"url": "https://twitter.com/fredwilson/status/533040726146162689"
},
"username": "fredwilson"
},
"v": "0.2",
"website": "http://avc.com"
"@context": "http://schema.org",
"@type": "Person",
"account": [
{
"@type": "Account",
"identifier": "fredwilson",
"placeholder": false,
"proofType": "http",
"proofUrl": "https://twitter.com/fredwilson/status/943066895422455809",
"service": "twitter"
}
],
"description": "I am a VC",
"image": [
{
"@type": "ImageObject",
"contentUrl": "https://gaia.blockstack.org/hub/1CER5u4QXuqffHjHKrU76iMCsqtJLM5VHu/0/avatar-0",
"name": "avatar"
}
],
"name": "Fred Wilson"
},
"public_key": "026c94d1897fa148fa6401247a339b55abd869a3d562fdae8a7fcb9a11f1f846f3",
"verifications": [
{
"identifier": "fredwilson",
"proof_url": "https://twitter.com/fredwilson/status/943066895422455809",
"service": "twitter",
"valid": true
}
],
"zone_file": {
"$origin": "fred.id",
"$ttl": 3600,
"uri": [
{
"name": "_http._tcp",
"priority": 10,
"target": "https://gaia.blockstack.org/hub/1CER5u4QXuqffHjHKrU76iMCsqtJLM5VHu/0/profile.json",
"weight": 1
}
]
}
}
}
## Profile Search [GET /v1/search?query={query}]
Searches for a profile using a search string.
+ Public Only Endpoint