hedii / colissimo-api Goto Github PK
View Code? Open in Web Editor NEWA php package to track Colissimo (La Poste) parcels
License: MIT License
A php package to track Colissimo (La Poste) parcels
License: MIT License
If someone have a fresh colissimo ID, it would be nice to update the test with it:
Hi,
Careful, you specify in your README.md :
$colissimoApi = new \Hedii\ColissimoApi();
But it is :
$colissimoApi = new \Hedii\ColissimoApi\ColissimoApi();
And it might be nice to specify we have to install the xml
(dom) PHP extension with (for example) :
apt install php7.0-dom
Regards,
Hello,
J'utilisais ton code jusqu'à aujourd'hui mais depuis le changement d'interface du site de suivi LaPoste, il ne fonctionne plus.
En bidouillant les nouvelles pages de suivi, je me suis rendu compte qu'elles font un bête call Ajax sur une API interne à LaPoste : https://d.pr/i/R5IWcX
Pour qu'un appel via php-cURL fonctionne, il faut garder le cookie dans les headers. Je ne sais pas à quel point c'est propre/fiable, quand ce cookie expire, etc. Je n'ai jamais manipulé les headers à ce niveau dans mes requêtes HTTP.
J'imagine qu'un scrapping basique reste possible, mais puisque c'est un call Ajax qui nourrit la page, on n'arrive pas à récupérer quoi que ce soit au chargement direct de la page. :/
Comment vois-tu les choses ? Vas-tu faire évoluer ta bibliothèque, ou est-ce que c'est un projet abandonné dont tu n'as plus besoin ?
Merci,
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.