heureka / overeno-zakazniky Goto Github PK
View Code? Open in Web Editor NEWHeureka overeno service API for PHP
License: MIT License
Heureka overeno service API for PHP
License: MIT License
When I use PhpRequester
to send order/log
request I get malformed response eg.:
HTTP/1.1 401 Unauthorized
Server: nginx
Date: Thu, 22 Sep 2016 16:53:31 GMT
Content-Type: application/json;charset=utf-8
Transfer-Encoding: chunked
Connection: close
X-HGenerator: oz2
X-Frame-Options: SAMEORIGIN
X-Powered-By: Nette Framework
Vary: X-Requested-With
Cache-Control: s-maxage=0, max-age=0, must-revalidate
Expires: Mon, 23 Jan 1978 10:00:00 GMT
62
{
"code": 401,
"message": "unauthorized",
"description": "Unknown API key \"TEST\"."
}
0
Note that the problem is not in the authentication, but in the 62
and 0
in the response.
When I do the same request using CurlRequester
it works well.
Ahoj,
je potreba vyhazovat DuplicateProductItemIdException? Ona to chyba byt nemusi. U nas na shopu se stava bezne, ze produkt je soucasti vice konfiguraci a tudiz se v kosiku vyskytuje vicekrat.
Nestacilo by nahradit za?
if (array_search($productItemId, $this->productItemIds) === false) {
$this->productItemIds[] = $productItemId;
}
Svym zpusobem se knihovna snazi o nechtenou validaci kosiku.
Sorry, but this just isnt nice of you..
For all of you who dont have time to fix this right now, one of possible solutions is to update your composer json to "heureka/overenozakazniky": "dev-master#9c737335708b99090d5dcf6b59c141a423d0a50d",
The file does not include only interface but also an exception class RequesterException
which will not get autoloaded by composer2.0. Please move the exception to a separate file.
Navrhuji pridat composer pro spravu zavislosti.
exception 'Heureka\ShopCertification\RequesterException' with message 'Request resulted in HTTP code '400'. Response result:
{
"code": 400,
"message": "bad-request",
"description": "There is a problem with your request. Please see the documentation for details.",
"dataErrors": [
"Expected key "productItemIds" to be "string[]", "array" of value "[3258]" given."
]
}' in \vendor\heureka\overeno-zakazniky\src\ShopCertification\CurlRequester.php:61
exception 'Heureka\ShopCertification\RequesterException' with message 'Request resulted in HTTP code '301'. Response result:
<title>301 Moved Permanently</title>The document has moved here.
' in \vendor\heureka\overenozakazniky\src\ShopCertification\CurlRequester.php:61composer require heureka/overeno-zakazniky
[InvalidArgumentException]
Could not find package heureka/overeno-zakazniky at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
Is it / will be possible to set a timeout for request?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.