Permalink
Browse files

Get record for a specific device token

  • Loading branch information...
1 parent 91763cb commit cab1de552966a596f556c007780aab7869df0d22 @mgood mgood committed Apr 7, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 urbanairship.py
View
@@ -110,6 +110,13 @@ def deregister(self, device_token):
if status != 204:
raise AirshipFailure(status, response)
+ def get_device_info(self, device_token):
+ url = DEVICE_TOKEN_URL + device_token
+ status, response = self._request('GET', '', url)
+ if status != 200:
+ raise AirshipFailure(status, response)
+ return json.loads(response)
+
def get_devices(self):
return AirshipDeviceList(self)

0 comments on commit cab1de5

Please sign in to comment.