I've used different methods and found it difficult to integrate mashape for a dictionary..
My code is below:
require_once 'unirest-php/src/Unirest.php';
// These code snippets use an open-source library.
$response = Unirest\Request::get("https://montanaflynn-dictionary.p.mashape.com/define?word=irony",
array(
"X-Mashape-Key" => "T2rwS1jyBSmshKoZB5Un2kfpvgtRp1hUS9pjsnHvPoGNHIMpda",
"Accept" => "application/json"
)
);
What am I not getting right
Regards