akiyamaSM / oxfordapi-wrapper

A PHP/Laravel Wrapper for oxford dictionary API
27 stars 6 forks source link

Retrieve dictionary entries for a given word #6

Open mohamad68 opened 7 years ago

mohamad68 commented 7 years ago

hi is there any way to get all information about word such as ( definitions , example , pronunciation) in one object like the first entry in oxford documentation API

> {
>   "metadata": {
>     "provider": "Oxford University Press"
>   },
>   "results": [
>     {
>       "id": "ace",
>       "language": "en",
>       "lexicalEntries": [
>         {
>           "entries": [
>             {
>               "grammaticalFeatures": [
>                 {
>                   "text": "Positive",
>                   "type": "Degree"
>                 }
>               ],
>               "homographNumber": "001",
>               "senses": [
>                 {
>                   "definitions": [
>                     "very good:"
>                   ],
>                   "examples": [
>                     {
>                       "text": "Ace! You've done it!"
>                     },
>                     {
>                       "text": "an ace swimmer"
>                     }
>                   ],
>                   "id": "m_en_gb0004640.006",
>                   "registers": [
>                     "informal"
>                   ]
>                 }
>               ]
>             }
>           ],
>           "language": "en",
>           "lexicalCategory": "Adjective",
>           "pronunciations": [
>             {
>               "audioFile": "http://audio.oxforddictionaries.com/en/mp3/ace_gb_1.mp3",
>               "dialects": [
>                 "British English"
>               ],
>               "phoneticNotation": "IPA",
>               "phoneticSpelling": "eɪs"
>             }
>           ],
>           "text": "ace"
>         },....etc.....

i'm annoying and i know it. forgive me

akiyamaSM commented 7 years ago

Sure, I'll work on it.

mohamad68 commented 7 years ago

hi I am still waiting for your response with regards to you'r effort