(self, profile)
| 348 | return response |
| 349 | |
| 350 | def getAPIkey(self, profile): |
| 351 | key = self.getconfigfile() |
| 352 | config_dict = toml.load(key) |
| 353 | if 'profiles' in config_dict and profile in config_dict['profiles'] and \ |
| 354 | config_dict['profiles'][profile]['api_key'] != "": |
| 355 | return config_dict['profiles'][profile]['api_key'] |
| 356 | else: |
| 357 | return None |
| 358 | |
| 359 | def getBearerToken(self,profile): |
| 360 | key = self.getconfigfile() |