Pushover REST API implementation in PHP