I am learning php and I have learned only the basics. I am trying to connect to wordnik using their php apis (Wordnik.php), I created the following:
<?php
require_once("Wordnik.php");
$api_key="MY_API_KEY";
$wordnik=Wordnik::instance($api_key);
var_dump($wordnik);
$definitions = $wordnik->getDefinitions('cat');
var_dump($definitions);
?>
The first var_dump is giving object(Wordnik)#1 (1) but there is no output for the later one. Can you please help me to solve this problem? Thank you