-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add cookies to requests #168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -37,7 +37,8 @@ def _raise_for_status(response): | |||
|
|||
|
|||
class RestAPI: | |||
def __init__(self, url=None, login=None, password=None, api_key=None, is_managed=False, headers=None): | |||
def __init__(self, url=None, login=None, password=None, api_key=None, is_managed=False, | |||
cookies=None, headers=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what cookie name is going to be used? is it related to authorization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cookies are used to track session. I'll add you the related PRs.
No description provided.