+ def get_account_info(self, until = None, if_modified_since=None, if_unmodified_since=None):
+ """ @param until (string): optional timestamp
+ @param if_modified_since (string): Retrieve if account has changed since provided timestamp
+ @param if_unmodified_since (string): Retrieve if account has not changed since provided timestamp
+ """
+ self.assert_account()
+ path = path4url(self.account)
+
+ path += '' if until is None else params4url({'until':until})
+ if if_modified_since is not None:
+ self.set_header('If-Modified-Since', if_modified_since)
+ if if_modified_since is not None:
+ self.set_header('If-Unmodified-Since', if_unmodified_since)
+
+ r = self.head(path, success=(204, 401))
+ if r.status_code == 401:
+ raise ClientError("No authorization")
+ return r.headers
+