First of all, many thanks for optimization service!!
It´s great and so fast!
But, I´m facing a problem running PHP example code:
I´ve copied and paste PHP Optimization example and I´m getting the following error:
"{"code":2,"error":"Invalid JSON object in request, please add jobs and vehicles to the object body"}"
I´ve also tried (copied & paste) Javascript version and it runs OK.
The data part of both (PHP & Javascript) are exactly the same.
So there is some option missing inside PHP version.
Yeah, the code there is auto-generated and generally not really to be trusted. I don’t really see the problem in the PHP code either, but that doesn’t say anything, don’t really PHP. I think you’ll just have to google how to make a POST request in PHP, it should be pretty easy.
Hi @uerlings,
you might have to tweak the headers a bit. If you look through the other examples and try out some headers, you might solve this.
If you would provide a working example, we could adjust the example template and help others facing the same problem.