Git Product home page Git Product logo

Comments (4)

gnikyt avatar gnikyt commented on September 2, 2024

@ianfortier Which osiset/basic-shopify-api version are you on? Check with composer info.
I recently released a new version last week and it doesn't have a type return because it could be stdClass or array now, previously it was just stdClass.

from basic-shopify-api.

ianfortier avatar ianfortier commented on September 2, 2024

"osiset/basic-shopify-api": "^8.1"

Will try to update to 8.2

from basic-shopify-api.

khiconit avatar khiconit commented on September 2, 2024

Why you are return array instead stdClass ? @osiset

[ 'errors' => false, 'response' => $resp, 'status' => $resp->getStatusCode(), 'body' => $this->toResponse($resp->getBody()), 'link' => $link, 'timestamps' => $this->getTimeStore()->get($this->getSession()), ]

I familiar stdClass more than array. Because I was used your package from 6.0 version
LOL
:D

from basic-shopify-api.

gnikyt avatar gnikyt commented on September 2, 2024

@khiconit It was changed because there was several people using this package with my other repository (laravel-shopify) and trying to map the responses to a Laravel JSON Resource, this is not possible with a stdClass.

The main return of rest/graph will return an array now instead of stdClass. However, the "body" of the response can be accessed as an array or stdClass.

Will close for now unless present in 8.2+.

from basic-shopify-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.