Skip to content

getAllItems() trows error if header is 'application/xml' on getAllItemsRequest  #24

Description

@Malaganus

The method getAllItems() throws Fatal error: Uncaught TypeError: Walmart\Apis\MP\MX\ItemsApi::getAllItemsWithHttpInfo(): Return value must be of type Walmart\Models\MP\MX\Items\ItemResponses

The response from WM is with all correct data but not in the correct or expected format, because the response is in XML and ItemsApi->getAllItemsWithHttpInfo() try to do a json_decode on the XML response string.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions