Onename
This this is a client library for the Onename API. See their docs for details HTTP API spec.
Important: the Onename API is still in closed beta, so this is all subject to change!
Example usage
First:
npm install --save onename
var client = appID: 'YOUR_APP_ID' appSecret: 'YOUR_APP_SECRET'; client;
Functions
-
profiles(openname, callback)
: Returns the profile data of the user with a given openname username.openname
: the Openname of the user to look up the profile forcallback(err, resp, body)
: callback function
-
verifications(openname, callback)
: Takes in an openname username and returns the verifications for that user's profile (as well as the profile data itself).openname
: the Openname of the user to look up the profile forcallback(err, resp, body)
: callback function
-
search(query, callback)
: Takes in a search query and returns a list of results that match the search. The query is matched against openname usernames, full names, and twitter handles.query
: the string to search forcallback(err, resp, body)
: callback function