Add initial implementation for sending notifications

This commit is contained in:
Sergey Petrov
2016-02-01 13:02:19 +03:00
parent f2d5f9e5d0
commit 29f818cf43
3 changed files with 45 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
from typing import Optional
from apns2.payload import Payload
class APNsClient(object):
def __init__(self,
cert_file: str,
use_sandbox: bool = False,
use_alternate_port: bool = False) -> None: ...
def send_notification(self,
token_hex: str,
notification: Payload,
topic: Optional[str] = None) -> None: ...