Added api mask to html added check

This commit is contained in:
Raynaldo Rivera
2014-10-12 18:53:20 -07:00
parent 4dca4e7ec9
commit 20b9152a1c
3 changed files with 22 additions and 3 deletions

View File

@@ -34,3 +34,15 @@ class EveApiManager():
return ticker
@staticmethod
def check_api_is_type_account(api_id, api_key):
try:
api = evelink.api.API(api_key=(api_id, api_key))
account = evelink.account.Account(api=api)
info = account.key_info()
return info[0]['type'] == "account"
except evelink.api.APIError as error:
print error
return False