(self, login, password, opentable_filename, tsv_filename=None)
| 23 | |
| 24 | class OpentableDownloader(object): |
| 25 | def __init__(self, login, password, opentable_filename, tsv_filename=None): |
| 26 | self.login = login |
| 27 | self.password = password |
| 28 | self.token = None |
| 29 | self.opentable_filename = opentable_filename |
| 30 | self.tsv_filename = tsv_filename |
| 31 | |
| 32 | # TODO(mgsergio): Check if token is actual in functions. |
| 33 | self._get_token() |
| 34 | |
| 35 | def download(self): |
| 36 | headers = self._add_auth_header({'Content-Type': 'application/json'}) |
nothing calls this directly
no test coverage detected