PHP Dashboard for Localytics API using CURL