Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onename

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onename

Client library for onename.co

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Onename Build Status

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 = require('onename')({
  appID: 'YOUR_APP_ID',
  appSecret: 'YOUR_APP_SECRET'
});

client.profiles('smurthas', function(err, resp, body) {
  // err, resp, and body are just like those from the request npm module
  console.log(body);
});

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 for
    • callback(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 for
    • callback(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 for
    • callback(err, resp, body): callback function

FAQs

Package last updated on 08 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc