Giter Site home page Giter Site logo

Comments (5)

timothydc avatar timothydc commented on September 26, 2024 1

I updated the readme with some information on how to use query parameters. Please update your installation.

But try and open a new issue when asking additional questions!

from laravel-lightspeed-retail-api.

timothydc avatar timothydc commented on September 26, 2024

At the moment there is no stable version of this package.
To what minimum version setting is your composer.json set? It should be atleast "minimum-stability": "alpha"

from laravel-lightspeed-retail-api.

rickavmaniac avatar rickavmaniac commented on September 26, 2024

Ok now everything work. Wow nice job !

I already get my token and do some basic query with the Item and category ressource.

For now everything work great and I must say you did a pretty good job... Congrats!

I think right now ressources are only read only? Did you plan to allow ressource create/update in the future?

I plan to use this module in my company and if we do so, I would like to make a contribution to you. You will save us many many hours of dev time...

Keep the good work !

from laravel-lightspeed-retail-api.

timothydc avatar timothydc commented on September 26, 2024

You can create and update resources too! For example, if you'd like to update a category:
LightspeedRetailApi::api()->category()->update(123, ['name' => 'foobar']);

At the moment there aren't many LS retail resources availabable, but you can always directly call them.
For example if you'd like to call the above API call directly:
LightspeedRetailApi::api()->put('Category', 123, ['name' => 'foobar']); Mind the capitalization of Category.

All resources in the documentation are supported.

from laravel-lightspeed-retail-api.

rickavmaniac avatar rickavmaniac commented on September 26, 2024

Great ! With the direct access ex. get('Sale') I am able to read all my ressources... cool :-)

I even create a new entry with a post and it work well.

Also, was wondering if It is possible to do a search other than by id? ex. all item with a catagoryID = 180 ?

Something like that : LightspeedRetailApi::api()->Item()->where('categoryID', 180)->get());

Last but not least, LightSpeed limit the number of returns to 100 items pers requests. What we do if we need all the items in ressource? We do a loop? But I think LightSpeed have a max numbers of requests so a pause (or multiples pause) will be needed somewhere during those request?

Keep the good work...

from laravel-lightspeed-retail-api.

Related Issues (8)

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.