# coding: utf-8 PARSE_API_BASE = 'https://api.parse.com' PARSE_PUSH_API = '/1/push' PARSE_PUSH_URL = PARSE_API_BASE + PARSE_PUSH_API # Push Notificationに必要なKeyをHTTP Headerで指定 HEADERS = { "X-Parse-Application-Id": "<Application ID>", "X-Parse-REST-API-Key": "<REST API Key>", "X-Parse-Master-Key": "<Master Key>", "Content-Type": "application/json" } class APNMessageQueue(object): """ APN(Apple Push