I like to post a JSON object with curl. All I have is that piece of 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###
What to do now exactly, to make this happen in PHP? Could you please post an example?
 
     
     
    