Get member
This endpoint returns information about a single member.
Request
HTTP Header | Value |
---|---|
Authorization |
You don’t need to authenticate for this endpoint, but if you do you might receive a different
response, depending on your permissions and what data the member has chosen to share. To authenticate,
provide a valid JSON Web Token, of the form Bearer ENCODEDHEADER.ENCODEDPAYLOAD.ENCODEDSIGNATURE
|
Path parameter | Value |
---|---|
id |
The unique ID number of the member you’d like to fetch. |
Examples
GET /v1/members/1 HTTP/1.1
Host: api.thefifthworld.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Response
This endpoint returns a JSON object. If you request an existing member, you’ll receive whatever information that member has made available to you, given your authentication. If you request a member that does not exist, you’ll receive an error.
Property | Value Type | Value |
---|---|---|
id |
number |
The unique numerical ID for this account. |
name |
string |
Optional. The name this member has given for henself. This property only appears if the member has provided a name. |
bio |
object |
Optional. A biographical snippet written by the member. This object will have two
properties: markdown , which provides the snippet in unparsed
Fifth World Markdown, and html ,
which provides the same snippet, but parsed into HTML. |
links |
object |
An object of links that the member has added to hens account. Properties include
facebook , twitter , github , patreon , and
web . |
nopass |
boolean |
If true , this member has not yet set a passphrase on hens account. This happens when
hen has not accepted the invitation yet. |
admin |
boolean |
If true , then this member has administrative privileges. |
Example
{
"id": 1004,
"name": "Jason Godesky",
"bio": {
"markdown": "*The Fifth World* began blah blah blah",
"html": "<p><em>The Fifth World</em> began blah blah blah</p>\n"
},
"links": {
"facebook": "https://facebook.com/jefgodesky",
"twitter": "https://twitter.com/jefgodesky",
"github": "https://github.com/jefgodesky",
"patreon": "https://www.patreon.com/thefifthworld",
"web": "https://thefifthworld.com"
},
"nopass": false,
"admin": true
}
{
"err": "Member not found"
}