Skip to content

Commit 99cd511

Browse files
author
Samuel Sutch
committed
added some more docs
1 parent fd057a2 commit 99cd511

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pyapns/client.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,23 @@ def notify(self, app_id, environment, notifications):
115115

116116
def feedback(self, app_id, environment):
117117
"""
118+
Gets the from the APN feedback service. These are tokens that
119+
Apple considers to be "dead" - that you should no longer attempt
120+
to deliver to.
121+
122+
Returns a list of dictionaries with the keys:
123+
124+
* `timestamp` - the UTC timestamp when Apple determined the
125+
token to be dead
126+
* `token` - the hexlified version of the token
127+
128+
:param app_id: Which app id to use
129+
:type app_id: string
130+
131+
:param environmenet: The environment for the app_id
132+
:type environment: string
133+
134+
:rtrype: list
118135
"""
119136
status, feedbacks = self._request(
120137
'GET', 'apps/{}/{}/feedback'.format(app_id, environment)
@@ -129,6 +146,14 @@ def disconnections(self, app_id, environment):
129146
recorded by pyapns. Each time apple severs the connection with
130147
pyapns it will try to send back an error packet describing which
131148
notification caused the error and the error that occurred.
149+
150+
:param app_id: Which app id to use
151+
:type app_id: string
152+
153+
:param environmenet: The environment for the app_id
154+
:type environment: string
155+
156+
:rtype: list
132157
"""
133158
status, disconnects = self._request(
134159
'GET', 'apps/{}/{}/disconnections'.format(app_id, environment)

0 commit comments

Comments
 (0)