0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for Graphcommons API. More info at: http://graphcommons.github.io/api-v1/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

graphcommons-ruby

version: 0.0.5 docs: rubydoc.info example: metagraph license: GPLv3

Ruby wrapper for Graphcommons API:

Graph Commons provides a simple REST API to programmatically make network maps (graphs) and integrate graphs into your applications. You can use our API to access Graph Commons API endpoints, which can get information on various graphs, nodes, and edges on the platform.

To get started, sign up to Graph Commons and get your developer key, which will be used for authentication in your API calls.

Installation

$ gem install graphcommons

Usage

First, add your key as an environment variable:

export GRAPHCOMMONS_API_KEY="XX_XXXXXXXXXXXXXXXXXXXXXX"

Then require the gem and you're good to go.

#irb

:001 > require 'graphcommons'
=> true 

:002 > Graphcommons::Endpoint.status
=> {"msg"=>"Working"} 

Alternatively, you can use the Graphcommons::API.set_key method. Please refer to the docs for more information.