From 33e2b38efe30daad10412912351fa48778ee28ae Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 19 Oct 2011 10:38:18 +0100 Subject: [PATCH] Switch to using new style keys for OAuth API --- app/api/handlers/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/handlers/oauth.py b/app/api/handlers/oauth.py index 8c4401a..6d53023 100644 --- a/app/api/handlers/oauth.py +++ b/app/api/handlers/oauth.py @@ -41,7 +41,7 @@ class OAuthOpTimerHandler(BaseHandler): events = [] for obj in objs: - params = {'userID': obj.pk, 'apiKey': obj.api_key, 'characterID': settings.FULL_API_CHARACTER_ID} + params = {'keyID': obj.pk, 'vCode': obj.api_key, 'characterID': settings.FULL_API_CHARACTER_ID} error_doc = {'ops': [{'startsIn': -1, 'eventID': 0, 'ownerName': '', 'eventDate': '', 'eventTitle': '
The EVE API calendar is unavailable
', 'duration': 0, 'isImportant': 0, 'eventText': 'Fuck CCP tbqh imho srsly', 'endsIn':-1, 'forumLink': ''}]} try: cached_doc = CachedDocument.objects.api_query('/char/UpcomingCalendarEvents.xml.aspx', params, timeout=10, service="Optimer")