Giter Site home page Giter Site logo

laravel-lightspeed-retail-api's People

Contributors

brunogoossens avatar tarektaher avatar timothydc avatar tvke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-lightspeed-retail-api's Issues

syntax error

Hi,

Everything was loading fine until I try to make an artisan command (php artisan make:command) to run my sync code.

My code is working but as soon as I call one of your class, I get an error. (Same code that run inside my app is ok)

When any API class in an artisan command I get this error
"
syntax error, unexpected 'ApiClient' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

at vendor/timothydc/laravel-lightspeed-retail-api/src/LightspeedRetailApi.php:10
6| use TimothyDC\LightspeedRetailApi\Services\ApiClient;
7|
8| class LightspeedRetailApi
9| {

10| private ApiClient $apiClient;
11|
12| public function __construct(ApiClient $apiClient)
13| {
14| $this->apiClient = $apiClient;

  +1 vendor frames 

2 [internal]:0
Composer\Autoload\ClassLoader::loadClass("TimothyDC\LightspeedRetailApi\LightspeedRetailApi")

  +10 vendor frames 

13 app/StockSync.php:155
Illuminate\Support\Facades\Facade::__callStatic("api", [])
"

At first I was thinking it is the .env variables that was not loading but I did a dump(env(PRESTASHOP_WS_KEY)) and the value is ok.

Any ideas ?

Only One Relation Query is Accepted in getAll() Method

Hi,

I'm trying to seed my DB with Lightspeed Items and having a strange issue with 'load_relations'.

The ApiClient accepts an array for queries, however, providing more than one relation does not work and simply returns an empty array.

// Works as expected
$products = LightspeedRetailApi::api()->getAll('Item', null, ['load_relations' => ['Images']]);

// Doesn't work as expected, returns []
$products = LightspeedRetailApi::api()->getAll('Item', null, ['load_relations' => ['Images', 'ItemECommerce']]);

Installation under Laravel 8

Hi,

I try a new install (composer require timothydc/laravel-lightspeed-retail-api
) under a Laravel 8 projet. But I got this error:

"Your requirements could not be resolved to an installable set of packages.

Problem 1
- Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.2.0].
- Can only install one of: guzzlehttp/guzzle[7.2.0, 6.5.x-dev].
- Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.2.0].
- timothydc/laravel-lightspeed-retail-api v0.12-alpha requires guzzlehttp/guzzle ^6.5 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- Installation request for timothydc/laravel-lightspeed-retail-api ^0.12.0@alpha -> satisfiable by timothydc/laravel-lightspeed-retail-api[v0.12-alpha].
- Installation request for guzzlehttp/guzzle (locked at 7.2.0, required as ^7.0.1) -> satisfiable by guzzlehttp/guzzle[7.2.0]."

Any idea?

Add pagination options for API v3

In the V3 version of the Lightspeed retail API the method for pagination is changed.
There is an next and previous attribute.
These URLs to the next 'page' have a after and before token.
The tokes provided are already encoded.
And for now they are un accessible via the get method.

new release

Is it possible to add a new release with the V3 version of the API @timothydc?

That would be great. ๐Ÿ˜ƒ

composer install error

Hi,

Sorry I am new to Laravel so maybe it is just me but I got this error when installing the package :
$ composer require timothydc/laravel-lightspeed-retail-api

[InvalidArgumentException]
Could not find a version of package timothydc/laravel-lightspeed-retail-api matching your minimum-stability (stable). Require it with an explicit version constraint allowin
g its desired stability.

Anything I can do to by pass this?

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.