Skip to content

graphcommons/graphcommons-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, # 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.

About

Ruby wrapper for Graphcommons API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages