Giter VIP home page Giter VIP logo

allegroapi's People

Contributors

imper86 avatar mleczakm avatar robsonek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

allegroapi's Issues

aktualizacja z v5 do v6

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:

  • imper86/allegroapi 6.0.1
  • lcobucci/clock 2.0.0
  • lcobucci/jwt 4.2.1
  • php 7.4

Wyłączanie "Potwierdź swoje konto"

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

Not really an issue but need advice

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 :-)

composer

Prośba o zaktualizowanie wersji w Composer

fetchTokenFromRefresh - bad response

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?

Błąd compser

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.

Ilość

Jak zmienie ilość za pomocą tej biblioteki?

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.