akiyamaSM / oxfordapi-wrapper

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

output is not include all response entries #5

Closed mohamad68 closed 7 years ago

mohamad68 commented 7 years ago

hi the output of this code :

$oxford = app(Inani\OxfordApiWrapper\OxfordWrapper::class);
    $parser =$oxford->lookFor('ace')
                    ->define();
    var_dump($parser->get());

is just first entry of response array

array (size=1)
  0 => string 'very good' (length=9)

but the the response for same word (here: ace) in demo of oxford site is this :

"results": [
    {
      "id": "ace",
      "language": "en",
      "lexicalEntries": [
        {
          "entries": [
            {
              "homographNumber": "001",
              "senses": [
                {
                  "definitions": [
                    "very good:"
                  ],
                  "id": "m_en_gb0004640.006"
                }
              ]
            }
          ],
          "language": "en",
          "lexicalCategory": "Adjective",
          "text": "ace"
        },
        {
          "entries": [
            {
              "homographNumber": "000",
              "senses": [
                {
                  "definitions": [
                    "a playing card with a single spot on it, ranked as the highest card in its suit in most card games:"
                  ],
                  "id": "m_en_gb0004640.001"
                },
                {
                  "definitions": [
                    "a person who excels at a particular sport or other activity:"
                  ],
                  "id": "m_en_gb0004640.002",
                  "subsenses": [
                    {
                      "definitions": [
                        "a pilot who has shot down many enemy aircraft:"
                      ],
                      "id": "m_en_gb0004640.003"
                    }
                  ]
                },
.
.
.and etc.........

where the problem is?

akiyamaSM commented 7 years ago

@mohamad68 Fixed!

mohamad68 commented 7 years ago

thank you very much maybe one day in same team!

akiyamaSM commented 7 years ago

You are welcome. why not. :D