HI,
Many thanks for the code.
As already mentioned by others, the original code was not working in my case. I just had to change one thing and everything works perfectly.
Instead
[code]
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
[/code]
I had to write:
[code]
curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($data));
[/code]