#292 fix API url

This commit is contained in:
Jérôme Leonard 2018-07-09 07:09:59 +02:00
parent 21031b7d99
commit a864a37d4b
No known key found for this signature in database
GPG Key ID: C5D0D898D56C3D9D

View File

@ -9,7 +9,7 @@ class Api():
def __init__(self, api_key=None): def __init__(self, api_key=None):
self.api_key = api_key self.api_key = api_key
self.base = 'https://www.malwares.com/api/v2/' self.base = 'https://public.api.malwares.com/v3/'
self.version = 2 self.version = 2
if api_key is None: if api_key is None:
raise ApiError("You must supply a valid Malwares API key.") raise ApiError("You must supply a valid Malwares API key.")