File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ from apns2.credentials import TokenCredentials
3535auth_key_path = ' path/to/auth_key'
3636auth_key_id = ' app_auth_key_id'
3737team_id = ' app_team_id'
38- token_credentials = TokensCredentials (auth_key_path = auth_key_path, auth_key_id = auth_key_id, team_id = team_id)
38+ token_credentials = TokenCredentials (auth_key_path = auth_key_path, auth_key_id = auth_key_id, team_id = team_id)
3939client = APNsClient(credentials = token_credentials, use_sandbox = False )
4040client.send_notification_batch(notifications = notifications, topic = topic)
4141```
@@ -82,4 +82,4 @@ PyAPNs2 is distributed under the terms of the MIT license.
8282
8383See [ LICENSE] ( LICENSE ) file for the complete license details.
8484
85- [ a1 ] :https://developer.apple.com/library/content/ documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/
85+ [ a1 ] :https://developer.apple.com/documentation/usernotifications?language=objc
You can’t perform that action at this time.
0 commit comments