From c9748733215d9fc4c1ffe19b3767095e5a4d4460 Mon Sep 17 00:00:00 2001 From: M Date: Sun, 12 May 2019 11:57:23 +0200 Subject: [PATCH] Update README.md (#79) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a23deff..7a59f11 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,13 @@ notifications = [Notification(payload=payload, token=token_hex)] client.send_notification_batch(notifications=notifications, topic=topic) # To use token based authentication -from apsn2.credentials import TokenCredentials +from apns2.credentials import TokenCredentials auth_key_path = 'path/to/auth_key' auth_key_id = 'app_auth_key_id' team_id = 'app_team_id' token_credentials = TokensCredentials(auth_key_path=auth_key_path, auth_key_id=auth_key_id, team_id=team_id) -client = APNsClient(credentials=token_credentials, use_sanbox=False) +client = APNsClient(credentials=token_credentials, use_sandbox=False) client.send_notification_batch(notifications=notifications, topic=topic) ```