I'm trying to get the synonyms of a word from Google's unofficial dictionary API, but I can't figure out how to select the data I want. This is the URL I'm using:
$url = 'https://www.googleapis.com/scribe/v1/research?key=AIzaSyDqVYORLCUXxSv7zneerIgC2UYMnxvPeqQ&dataset=dictionary&dictionaryLanguage=en&query=hello'
Then I do this:
$data = file_get_contents($url);
echo $data;
Everything is returned correctly, but as a string, so I can't figure out how to isolate the synonyms. I've tried simplexml_load_file($url);
but I can't get anything to echo/print from that.