Giter Site home page Giter Site logo

rest api about laravel-shopify HOT 6 OPEN

unplugged216 avatar unplugged216 commented on June 10, 2024
rest api

from laravel-shopify.

Comments (6)

unplugged216 avatar unplugged216 commented on June 10, 2024

Well, after firmly planting my face into the keyboard, repeatedly, I determined the issue. An undocumented thingy....

In the Shopify dev docs and here in the wiki, it only assumes a customer search needs one query parameter. Well, thats false it appears. You must include 'limit' of 1.... I am working to confirm this but so far thats what it seems.

from laravel-shopify.

Kyon147 avatar Kyon147 commented on June 10, 2024

Glad you found the solution @unplugged216 - I'm going to close this ticket now.

from laravel-shopify.

pramod-praella avatar pramod-praella commented on June 10, 2024

hey @unplugged216 how you resolved this? as per your conversation i added a limit but still getting all records

from laravel-shopify.

unplugged216 avatar unplugged216 commented on June 10, 2024

hey @unplugged216 how you resolved this? as per your conversation i added a limit but still getting all records

Hey @Pramod-HulkApps!

Here is an example, demonstrating what did not work and what worked for me.

What did not work
$shop->api()->rest('GET','/admin/api/2022-10/products.json', [ 'product_type' => 'Demo Type'])['body'];

This seemed to fix my issue
$shop->api()->rest('GET','/admin/api/2022-10/products.json', ['limit' => '250', 'product_type' => 'Demo Type'])['body'];

Please not I am also using the latest API. I opted in this call to set the API version manually instead of in ENV as I have noticed the ENV vars are not getting loaded consistently by the package.

from laravel-shopify.

unplugged216 avatar unplugged216 commented on June 10, 2024

Glad you found the solution @unplugged216 - I'm going to close this ticket now.

@Kyon147 ,

I would recommend not closing this as my solution may only work for me. This is a documentation issue in this package. The package provides a wiki demonstration that does not work.... Closing an issue without resolve is unsettling for the project I feel.

from laravel-shopify.

Kyon147 avatar Kyon147 commented on June 10, 2024

Hi @unplugged216

Happy to reopen, that's my misunderstanding reading it as a API issue rather than a package one. I tried a direct api call, and don't see any issues - so there could be a bug in the shopify-basic-api package but would need some more investigation.

from laravel-shopify.

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.