Closed ocean90 closed 6 years ago
Turns out the middleware requires the use of milliseconds. To get the current time in milliseconds you have to use round( microtime( true ) * 1000 );
which will return a float by default.
Hi @ocean90,
the upcoming release will support timestamp and Datetime. The conversion to milliseconds will be handled by the SDK.
For the current version your solution works fine.
best regards, Stefan
Fixed with 1.1.0
The code documentation says that both properties accept a DateTime object but the API only accepts a timestamp (integer) in requests.
Request:
Response:
Example of a request payload that produces a "Malformed request!" error.