Skip to content

add no auth api call method. fix api versions bug. #58

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

Conversation

IsaacHook
Copy link
Contributor

No description provided.

data=payload, headers=headers,
timeout=(timeout or self.request_timeout),
)

# API VERSIONS
def api_versions(self):
r = self.__api_request('GET', 'versions')
r = self.__api_request('GET', 'versions', version=None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use your new api_call_no_auth? Maybe extend it to other functions which don't use auth?

headers = {'Authorization': 'Bearer {}'.format(self.session_token)}
headers = auth
else:
headers.update(auth)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That might mess with auth_create_session. Also I am not sure we should update arguments given as reference by a user?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would it mess wit auth_create_session? Doesn't it just get a session_token?

Wouldn't users always want the correct authentication to be added? Or are you saying that sometimes users may want to send a request with their own session token not attributed to the instance of EvaHTTPClient?

@IsaacHook IsaacHook force-pushed the feature/no_auth_and_api_versions_bug branch from 533c2b2 to f0ba19b Compare June 29, 2020 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants