Skip to content

Instantly share code, notes, and snippets.

@33mhz
Last active November 1, 2018 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 33mhz/8ba959fc1cf5466c02a32ec26034754c to your computer and use it in GitHub Desktop.
Save 33mhz/8ba959fc1cf5466c02a32ec26034754c to your computer and use it in GitHub Desktop.
Proposed core user contacts raw

External User Profiles

me.rafaelcosta.user.profiles

This raw lists a user's external profiles.

By convention, these are common options, but users or clients can specify their own also:

pnut
homepage
blog
twitter
signal
telegram
facebook
mastodon
micro.blog

Example

{
    "type": "me.rafaelcosta.user.profiles",
    "value": {
        "profiles": [
            {
                "service": "signal",
                "id": "+12223334444"
            },
            {
                "service": "telegram",
                "id": "rafaelcosta"
            },
            {
                "service": "facebook",
                "id": "thisthat444"
            },
            {
                "service": "facebook",
                "id": "thatthis444",
                "text": "Work"
            },
            {
                "service": "blog",
                "url": "https://example.com"
            },
            {
                "service": "homepage",
                "url": "https://example.com"
            }
        ]
    }
}

Fields

Field Required? Type Description
service Required string The service hosting the profile
id Optional string ID of the user. If not provided, clients can assume there is nothing to parse but the url to a website
url Optional string If no id is provided, this is required. Otherwise optional.
text Optional string Should supplement any profile handle or service name, not replace it

Maintainers

  • @rafaelcosta
  • @33MHz
  • @ludolphus

Used by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment