Module: Taxa::OpenTreeOfLife::TNRS::Contexts

Included in:
Taxa::OpenTreeOfLife::TNRS
Defined in:
lib/taxa/open_tree_of_life/tnrs/contexts.rb

Overview

tnrs contexts api endpoint

Instance Method Summary collapse

Instance Method Details

#contextsObject



10
11
12
13
14
# File 'lib/taxa/open_tree_of_life/tnrs/contexts.rb', line 10

def contexts
  url = 'https://api.opentreeoflife.org/v3/tnrs/contexts'
  response = @http_client.post(url, nil, 'Content-Type' => 'application/json')
  JSON.parse(response.body)
end