Skip to content

evanp/openfollow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openfollow

API server to find people on the federated social web by email address, Twitter handle, Facebook ID, Google+ account, etc.

License

Copyright 2012, StatusNet Inc. and others.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

API

There one main API endpoint.

  • /v1/ids

    Takes a JSON document with fields "hook", "ids", "filter".

    "hook" is a Webhook to return additional results "later".

    "filter" is a filter for the results. Current values include:

    • "pubsub": only accounts that provide PubSubHubbub-enabled feeds

    "ids" is an array of identifier strings. Identifiers can be:

    Notable kinds of URLs are:

    Returns a JSON document that maps those identifiers to known accounts for the same user.

    Example:

    {
        "hook": "http://example.com/search-results/SOMETHINGUNIQUE",
        "filter": "pubsub",
        "ids": [
            "@t",
            "[email protected]",
            "http://facebook.com/faddah",
            "https://plus.google.com/113651174506128852447/posts",
            "Jan-Christoph Borchardt"
        ]
    }
    

    returns

    {
        "@t": ["http://tantek.com/"],
        "[email protected]": ["http://identi.ca/evan", "http://evanpro.tumblr.com/"],
        "http://facebook.com/faddah": [],
        "https://plus.google.com/113651174506128852447/posts": ["http://blog.romeda.org/"],
        "Jan-Christoph Borchardt": ["https://joindiaspora.com/u/jancborchardt"]
    }
    

    Note: every ID is returned, even if we don't have info on it.

    Every result would return as an array, even if there's only one element.

About

Search server to find people on the federated social web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published