Allow to set cookie in python(3) API constructor.

This commit is contained in:
Ondrej Novy
2015-07-24 11:45:36 +02:00
parent cde8d7ba4c
commit 50736458d0
2 changed files with 4 additions and 4 deletions

View File

@@ -18,13 +18,13 @@ from .models import *
class ApiClient:
"""Generic API client for Swagger client library builds"""
def __init__(self, apiKey=None, apiServer=None):
def __init__(self, apiKey=None, apiServer=None, cookie=None):
if apiKey == None:
raise Exception('You must pass an apiKey when instantiating the '
'APIClient')
self.apiKey = apiKey
self.apiServer = apiServer
self.cookie = None
self.cookie = cookie
def callAPI(self, resourcePath, method, queryParams, postData,
headerParams=None):