Comments (4)
@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.
"osiset/basic-shopify-api": "^8.1"
Will try to update to 8.2
from basic-shopify-api.
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.
@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)
- RateLimiter blowing up after change HOT 6
- Inconsistent Error Handling in use of Body in Response HOT 1
- Unable to set header on graphQL for Retrieving Storefront API translations HOT 1
- It would be useful to be able to change the graphql endpoint URL
- Custom Store Implementations HOT 1
- Problem with GraphQL and multiple mutations HOT 1
- getSession
- PHP 8.1 Warnings HOT 1
- Object of type Osiset\BasicShopifyAPI\BasicShopifyAPI is not callable
- cURL Timeout HOT 1
- v10.0.6 throws errors in PHP 7.4 HOT 2
- Return value of Osiset\BasicShopifyAPI\ResponseAccess::offsetGet() must be an instance of Osiset\BasicShopifyAPI\mixed, string returned HOT 3
- Resource Route not working HOT 1
- Sessions don't have a session ID HOT 1
- How to update webhook URL's for old stores? HOT 1
- Rest api upload image HOT 1
- Call to undefined function env() HOT 6
- Query is not working
- not finding classes
- HMAC verification requires removing padding characters from host (==)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basic-shopify-api.