imper86 / allegroapi Goto Github PK
View Code? Open in Web Editor NEWlibrary making allegro rest and soap api using easier
License: MIT License
library making allegro rest and soap api using easier
License: MIT License
Jak zmienie ilość za pomocą tej biblioteki?
Po aktualizacji do 6.0.1 mam problem z następującymi błędami:
dla if ($tokenBundle->getAccessToken()->isExpired()) {
...
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Lcobucci\JWT\Token\Plain::isExpired(), 0 passed in /home/*****.php on line 76 and exactly 1 expected in /home/*****/vendor/lcobucci/jwt/src/Token/Plain.php:77
dla $tokenBundle = $allegroAuth->fetchTokenFromRefresh($tokenBundle->getRefreshToken());
PHP Fatal error: Uncaught Error: Object of class Lcobucci\JWT\Token\Plain could not be converted to string in /home/*****/vendor/imper86/allegroapi/src/AllegroAuth.php:169
Czy metody getAccessToken, fetchTokenFromRefresh oraz getRefreshToken uległy jakiejś zmianie? Na pierwszy rzut oka to powinno działać.
wersje:
Hello
How to create instance of this class: PutOfferVariantRequest ?
I have some details wrong and it does not work.
Właśnie przechodzę na nową wersję 5 i trafiłem na problem z którym nie mogę sobie poradzić. Odświeżam token jak w dokumentacji:
if ($tokenBundle->getAccessToken()->isExpired()) { $tokenBundle = $allegroAuth->fetchTokenFromRefresh($tokenBundle->getRefreshToken()); }
i dostaję błąd
Bad response {"userId":1,"exception":"[object] (GuzzleHttp\\Exception\\BadResponseException(code: 400): Bad response at C:\\laragon\\www\\test\\vendor\\imper86\\allegro-rest-api-sdk\\src\\AllegroAuth.php:117)
Reszta wydaje się działać bez problemów. Masz jakiś pomysł czym to może być spowodowane?
Bardzo proszę o dodanie zasobu: PUT /order/checkout-forms/{checkoutForm.id}/fulfillment
do zmiany statusu realizacji zamówienia.
Link w dokumentacji https://developer.allegro.pl/documentation/#operation/setOrderFulfillmentUsingPUT
Jest szansa żeby zaktualizować guzzle do v7 ?
Prośba o zaktualizowanie wersji w Composer
Witam.
Właściwie mam gotowy skrypt logowania do REST Api ale nie wiem jak dorobić w nim uzyskiwanie nowego refesh_token dlatego próbuję z Twoim skryptem. Generalnie jestem zielony w programowaniu. Wcześniej używałem logowania w starym api allegro do aktualizacji stanów magazynowych ale niedługo mają wyłączyć stary typ logowania dlatego szukam rozwiązania problemu.
Najpierw miałem błąd związany z plikiem autoload.php. Utworzyłem katalog vendor i tam wrzuciłem plik znaleziony w którymś z katalogów.
Teraz dostaję inny błąd:
Fatal error: Uncaught Error: Class 'Imper86\AllegroApi\Credentials' not found in /index.php:10 Stack trace: #0 {main} thrown in /index.php on line 10
Czy da się to jakoś w miarę prosto rozwiązać?
Ewentualnie jak "dorobić" odświeżanie tokena w skrypcie z którym próbowałem wcześniej? https://github.com/Wiatrogon/php-allegro-rest-api/issues/9
Z góry dzięki za pomoc.
Podczas autoryzacji wyświetla się opcjonalne okno potwierdzenia konta. Może warto też dodać to jako opcję a nie jako warunek? Jest to 'prompt' => 'confirm' w metodzie createAuthUrl
Hello I am tring to use your allegro API
Everything is working fine until i am trying to do DoCheckNewAuctionExtRequest
For after sales i do $afterSalesServiceConditions = new AfterSalesServiceConditionsStruct($impliedWarranties, $returnPolicies, $warranties);
But how to use $fields = new ArrayOfFieldsvalue($datafield_decoded);
What data and structure we should Put
$datafield_decoded = array(item_array("fid"=>1, ... ),item_array("fid"=>2, ... )) etc => return NULL
if I try to bypass the new ArrayOfFieldsvalue and put directly my $datafield_decoded on $fields place
i have error Fatal error: Uncaught SoapFault: Nie podano parametru wymaganego dla wybranej kategorii. (Kategoria - fid: 2) , FID 2 is well provided with int value...
Thanks for advice
And big thanks for this API :-)
Hej!
Jest szansa dodać nowe metody? Potrzebuje m.in. https://developer.allegro.pl/documentation/#operation/getParcelTrackingUsingGET
W bibliotece jest tylko stara metoda (już deprecated) umożliwiająca śledzenie tylko paczek Allegro (https://developer.allegro.pl/documentation/#operation/getAllegroParcelTrackingUsingGET)
Dzięki za Twoją prace!
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.