How to do a PHP curl post
<p>I like to post a JSON object with curl. All I have is that piece of code:</p>

<pre><code>curl -X POST \
-H "Accept: application/json" \
-H "X-Access-Token: ###secureToken###" \
-H "Cache-Control: no-cache" \
-d '{
    "frames": [
        {
            "index": 0,
            "text": "SUCCESS",
            "icon": null
        }
    ]
}' \
https://developer.lametric.com/api/V1/dev/widget/update/com.lametric.###appid###
</code></pre>

<p>What to do now exactly, to make this happen in PHP? Could you please post an example?</p>